AiLabel
Generated from front/ui/catalogue/examples/AiLabel.json
learning · static (no JavaScript) · no children. All components: component playground.
Description for the model
Section titled “Description for the model”A short label that says content was written or assisted by AI, with an icon and the words (never colour alone). Filled by the app next to generated content; 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": "AiLabel", "props": { "text": "AI-generated, based on this course's sources", "tone": "generated" }}| Prop | Type | Required | Notes |
|---|---|---|---|
text |
string | yes | The label text. max length 120 |
tone |
"generated" | "assisted" |
generated = written by AI; assisted = written by the author with AI help. default "generated" |
|
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.
AI-generated, based on this course's sourcesInvalid 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).
{ "text": "Unknown tone", "tone": "loud"}Issues:
/tonemust be one of “generated”, “assisted”
Rendered as:
Unknown toneAccessibility
Section titled “Accessibility”axe-core: 5 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.