Components / Media

AudioPlayer native

An inline audio player with a title and native controls.

A2UI basic
AudioPlayer
Children
none
Loading the renderer…
AudioPlayer rendered by the React renderer on Web
Web React
AudioPlayer rendered by the SwiftUI renderer on iOS
iOS SwiftUI
AudioPlayer rendered by the Compose renderer on Android
Android Compose
AudioPlayer rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-audio-player, painted by each native renderer.

PropTypeDefaultDescription
srcrequiredbindurl–The audio URL.
titlestring–What is playing.
durationMsnumber–Known length for the scrubber.

No events, no slots. Children: none.

Role
group
Semantics
audio with the platform's controls
KeysAction
Spaceplay/pause; ArrowLeft/ArrowRight: seek 5 s
Recipe parts
AudioPlayer/rootAudioPlayer/controlsAudioPlayer/track
Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme