Now playing
A compact card for the current track with controls.

Low tide
The Harbour Set
When to use
- A music or podcast screen.
When not to use
- The player is the whole page; use the media player.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/now-playing
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
NowPlaying
10 props
PropTypeDefaultDescription
track *Track—
playing *boolean—
position *number—Seconds played.
duration *number—Seconds in total.
onPlayPause *() => void—
onSeek *(seconds: number) => void—
onPrevious(() => void)—
onNext(() => void)—
extraReactNode—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-label, aria-hidden, aria-live and aria-valuetext in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/now-playing.mdThe index of every part is at /llms.txt.