Skip to content

CitationList

Generated from front/ui/catalogue/examples/CitationList.json

learning · static (no JavaScript) · no children. All components: component playground.

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.

Rendered from the example props below with the real component. Theme: coffee · oncall · nightsky · gravity · poland · ulam · platform · open on its own

{
"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

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 extraction

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:

  • /items fewer than 1 items

Rendered as:

Sources

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.