Now Playing Widget
A vinyl slides out of a generated sleeve and spins as a tonearm settles on it, an EQ breathes beside the title and progress ticks live with a scrubbable seek bar. Visual only — wire it to your own player.
Try it: Press play/pause — the record slides and the tonearm lifts; drag the bar to seek.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/now-playing-widget.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/now-playing-widget. You can also copy the source into components/ui/now-playing-widget.tsx (view on GitHub).
Usage
import { NowPlayingWidget } from '@/components/ui/now-playing-widget'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
tracks | { title, artist, duration, seed?, src? }[] | 4 sample tracks | Playlist; duration in seconds. Without src, sleeve art is generated from seed. |
playing / defaultPlaying | boolean | true | Controlled / uncontrolled play state. |
onPlayingChange | (playing: boolean) => void | — | Fires on play/pause. |
onTrackChange | (track, index) => void | — | Fires when the track changes (including auto-advance). |
playingLabel / pausedLabel | string | 'Now playing' / 'Paused' | Eyebrow copy. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Widgets components
- World Clock Globe
A dotted planet you can spin, lit by the real sun — the night side dims along a live terminator, a 24-hour ring tracks the chosen city and every card ticks its own local time. Canvas 2D, no map tiles.
- Ring Progress Cluster
Cluster of animated progress rings for queue depth, SLA, and capacity.
- Signal Beam Diagram
An integration map where light travels: sources fire gradient pulses along hairline S-curves into a glass hub, which relays them to destinations. Select a node to isolate its route and read what…
- Status Heatmap Grid
Compact hour×day heatmap for message volume with hover tooltip.
- Swing Price Tag
A luxury swing tag hanging from a brass rail on a waxed cord. Brush past it and it swings like a real, lightly damped pendulum that settles and sleeps; tap it and it twirls over to the back for…
- Activity Stream Widget
Live-feeling activity feed with staggered row inserts.