Skip to main content

MediaCard

MediaCard — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

MediaCard — Prism component.

Accessibility

When the whole card is actionable, expose a single accessible name and make it reachable with Tab + Enter. Decorative imagery uses empty alt.

Import

const { MediaCard } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
artworkstringAlbum / cover art URL; a music-note placeholder shows when absent.
eyebrowReact.ReactNodeSmall label above the title. Default "Now playing".
titleReact.ReactNode
subtitleReact.ReactNode
progressnumberPlayback progress 0–100.
elapsedReact.ReactNode
totalReact.ReactNode
controlsReact.ReactNodeTransport control nodes (IconButtons).
classNamestring