ProseSteps
Generated from front/ui/catalogue/examples/ProseSteps.json
learning · interactive (ships a small web component) · no children. All components: component playground.
Description for the model
Section titled “Description for the model”A long reading shown one part at a time: an optional introduction and 2-12 parts, each with a heading and Markdown text. Previous and next controls move between parts with JavaScript; without it every part is on the page. Used by the adaptive lesson view for a learner who prefers lessons in parts.
Live example
Section titled “Live example”Rendered from the example props below with the real component. Theme: coffee · oncall · nightsky · gravity · poland · ulam · platform · open on its own
Example
Section titled “Example”{ "component": "ProseSteps", "props": { "intro": "Three things decide how a cup tastes.", "sections": [ { "heading": "Grind", "level": 2, "markdown": "A **medium** grind suits most brewers." }, { "heading": "Water", "level": 2, "markdown": "Use water at about 94 degrees." } ], "size": "md" }}| Prop | Type | Required | Notes |
|---|---|---|---|
id |
string | Anchor id. max length 40, default "parts" |
|
intro |
string | Markdown shown above the first part. max length 60000 | |
sections |
array of objects | yes | The parts, in reading order. min 2 items, max 12 items |
sections[].heading |
string | yes | Heading of the part. max length 160 |
sections[].level |
integer | Heading level, 2 or 3. ≥ 2, ≤ 3, default 2 |
|
sections[].markdown |
string | yes | Markdown of the part. max length 60000 |
size |
"sm" | "md" | "lg" |
Text size. default "md" |
|
locale |
"en" | "pl" | "zh" |
Interface language of the fixed strings; filled by the app, authors and models leave it out |
Text fallback
Section titled “Text fallback”What a text-only client, an unknown renderer or a plain-text channel shows for the example above.
Three things decide how a cup tastes.GrindA **medium** grind suits most brewers.WaterUse water at about 94 degrees.Invalid props
Section titled “Invalid props”A node whose props fail the schema never breaks the page: the renderer shows the plain-text fallback instead (and logs the issues in development).
{ "sections": [ { "heading": "Only one part", "markdown": "Too short." } ]}Issues:
/sectionsfewer than 2 items
Rendered as:
Only one partToo short.Accessibility
Section titled “Accessibility”axe-core: 15 rules passed, 0 violations, 0 need manual review. Run at build time on the server-rendered HTML in jsdom. Colour contrast and layout rules need a browser and are covered by the Playwright axe scans of the reference frontend.