06 / COMPONENTS / READING
Example guide
How to use a live demo, attached right under it: a TRY IT label, a few numbered steps at body size, bold control chips, and keycaps. It replaces tiny gray instruction text under examples.
Reading1 variantcomponent
Live preview
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Notes
Every embedded demo gets one, attached right under its frame and indented so its rule never sits left of the demo's text or the paragraphs: wrap the iframe and its guide in one .exampleFrame (it replaces the old p.centerImage around demo iframes) and point the iframe's aria-describedby at the guide's id. Write one to three numbered steps, stacked one per line in the order a reader does them, each starting with a verb and under about ten words; a single action is an exampleGuide__text line with no number. Name anything the reader presses or toggles with an exampleGuide__control chip using the control's exact label, and keyboard keys with kbd keycaps. The label is always Try it, with the bullseye site icon (1f3af) set inline as --icon so the header's icon swap draws it in the reader's style. The guide says what to do; the sentence before the demo says what it is, and the paragraph after says what it means, so don't repeat the steps in either. Static figures don't get a guide. Text inside the demo that changes as readers play (counts, settings, measured values) uses readout chips at 15px or more, never tiny gray text. In the Markdown and plain-text twins, follow the demo link with **Try it:** (plain Try it:) and a numbered list with control labels in bold. Never go straight from the demo to "Onwards!": put a sentence between them. See /design/examples.htm.
Usage
Example guide
Example composed with native selectors / Rendered markup<div class="exampleFrame">
<iframe src="examples/demo.htm" title="What the demo shows" aria-describedby="guide-demo" loading="lazy" style="height: 460px;"></iframe>
<div class="exampleGuide" id="guide-demo">
<p class="exampleGuide__label" style="--icon: url('https://www.kirupa.com/icon/1f3af.svg');">Try it</p>
<ol class="exampleGuide__steps">
<li>Click a fruit</li>
<li>Press <span class="exampleGuide__control">Back to all fruit</span></li>
<li>Uncheck <span class="exampleGuide__control">Use view transitions</span> and do it again</li>
</ol>
</div>
</div>
<!-- One action: a single line, no number -->
<div class="exampleGuide" id="guide-other">
<p class="exampleGuide__label" style="--icon: url('https://www.kirupa.com/icon/1f3af.svg');">Try it</p>
<p class="exampleGuide__text">Drag the shapes, or press <kbd>Tab</kbd> and use the arrow keys</p>
</div>Anatomy
Selectors:is(#mainContent, article#tutorialInformation) .exampleFrame#mainContent .exampleGuide#mainContent .exampleGuide .exampleGuide__label#mainContent .exampleGuide .exampleGuide__steps.exampleGuide__steps li#mainContent .exampleGuide .exampleGuide__text#mainContent .exampleGuide kbd#mainContent .exampleGuide .exampleGuide__control
Properties--linkForeground--bodyText--structureBorder--inputBackground--monoFonts
Sources
Agent Instructions / components
You are composing a current-shell KIRUPA page. Read /design/components.json and the relevant entry in /design/sections/components.md for selectors, variants, source files, and usage. Start from an adjacent working page and reuse its SSI structure and named component classes. When a link needs to look like a link inside the tutorial body, add the blueEmphasis class to its anchor, including in component examples. Style class names, IDs, and code identifiers in explanatory prose with inlineCode. Choose semantic HTML before adding JavaScript. Use visible labels, keyboard-operable controls, clear focus, and explicit loading/error/empty states. Keep forms inert in documentation specimens and label demo output. Preserve the article's reading rhythm and code overflow containment. Verify the component in each visual style and both modes. Do not initialize onboarding, tracking, a live chat request, or a subscription in a preview. Keep reference and navigation descriptions short and factual. Follow WCAG 2.2 AA for new or changed content: semantic HTML, keyboard access, visible focus, readable contrast in every theme, text alternatives, labeled controls, and explicit errors. Support zoom/reflow, respect reduced motion, and keep sound optional. Read /design/sections/accessibility.md for acceptance checks. Report unresolved barriers; automated checks alone do not establish conformance.