Skip to content

AiLabel

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

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

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.

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

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

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 sources

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:

  • /tone must be one of “generated”, “assisted”

Rendered as:

Unknown tone

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.