AudioPlayer
Generated from front/ui/catalogue/examples/AudioPlayer.json
learning · static (no JavaScript) · no children. All components: component playground.
Description for the model
Section titled “Description for the model”Audio (podcast, recording) with an accessible native player.
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": "AudioPlayer", "props": { "src": "https://example.org/media/tasting-notes.mp3", "title": "Tasting notes, lesson 2", "seconds": 240 }}| Prop | Type | Required | Notes |
|---|---|---|---|
src |
string (href) | yes | Audio URL. max length 2048 |
title |
string | yes | Title. max length 160 |
seconds |
integer | Length in seconds. ≥ 0 | |
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.
Audio: Tasting notes, lesson 2Invalid 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).
{ "src": "", "title": "x"}Issues:
/srcunsafe or empty link
Rendered as:
Audio: xAccessibility
Section titled “Accessibility”axe-core: 6 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.