CitationList
Generated from front/ui/catalogue/examples/CitationList.json
learning · static (no JavaScript) · no children. All components: component playground.
Description for the model
Section titled “Description for the model”The sources a block is based on: a visible heading and a list of source names, each a link only when the API gives a lesson to open. Filled by the app next to generated blocks; authors do not place it.
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": "CitationList", "props": { "items": [ { "label": "Brewing basics: the ratio" }, { "label": "Grind size and extraction", "href": "/learn/1/4" } ] }}| Prop | Type | Required | Notes |
|---|---|---|---|
items |
array of objects | yes | 1 to 12 sources. min 1 items, max 12 items |
items[].label |
string | yes | Name of the cited source section. max length 200 |
items[].href |
string (href) | Lesson the source belongs to; leave out when there is none. max length 2048 | |
label |
string | Heading of the list; the interface word for “Sources” when left out. max length 60 | |
locale |
"en" | "pl" | "zh" |
Interface language of the fixed strings; filled by the app, authors and models leave it out | |
id |
string | Anchor id for in-page links (letters, digits, dashes). max length 40 |
Text fallback
Section titled “Text fallback”What a text-only client, an unknown renderer or a plain-text channel shows for the example above.
Sources- Brewing basics: the ratio- Grind size and extractionInvalid 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).
{ "items": []}Issues:
/itemsfewer than 1 items
Rendered as:
SourcesAccessibility
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.