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.json

Or, 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

Component props
PropTypeDefaultNotes
tracks{ title, artist, duration, seed?, src? }[]4 sample tracksPlaylist; duration in seconds. Without src, sleeve art is generated from seed.
playing / defaultPlayingbooleantrueControlled / uncontrolled play state.
onPlayingChange(playing: boolean) => void—Fires on play/pause.
onTrackChange(track, index) => void—Fires when the track changes (including auto-advance).
playingLabel / pausedLabelstring'Now playing' / 'Paused'Eyebrow copy.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • 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.

See all 15 Widgets components