Audio
Media
Audio player. transcript links what was said, which is what a reader who cannot hear it needs.
Audio(src: …, controls: …, autoplay: …)
Example
Audio(src: "/episode-1.mp3", transcript: "/episode-1.txt").controls
Renders with the class wf-audio, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| src: | String |
Audio URL |
| controls: | Bool |
Show the browser's playback controls |
| autoplay: | Bool |
Start playing when shown |
| loop: | Bool |
Start again when it ends |
| transcript: | String |
A link to what was said, shown beneath the player |
Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.