Skip to content

AudioPlayer

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

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

Audio (podcast, recording) with an accessible native player.

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

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

What a text-only client, an unknown renderer or a plain-text channel shows for the example above.

Audio: Tasting notes, lesson 2

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:

  • /src unsafe or empty link

Rendered as:

Audio: x

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.