CD-03Cards
Now Playing
Music card with a spinning disc you can grab and turn to scrub, built with React and Tailwind CSS.
PROOnboarding Checklist and more like it are in Kokonut UI Pro
Installation
Now Playing is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/liquid-glass-card.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/liquid-glass-cardOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/liquid-glass-card.tsx.
npm install class-variance-authority lucide-reactUsage
import NowPlaying from "@/components/kokonutui/liquid-glass-card";
export default function Example() {
return <NowPlaying />;
}Props
tracksNowPlayingTrack[]Default built-indefaultTracknumberDefault 0Index of the track loaded first.
autoPlaybooleanDefault trueStart playing on mount.
accentstringDefault "#f97316"The one accent colour: meter, progress and label art.
glassEffectbooleanDefault falseWraps the card in the glass shadow and SVG refraction (Chromium only).
onTrackChange(index: number) => voidclassNamestringExtra classes for the root element.
NowPlayingTrack
titlerequiredstringartistrequiredstringdurationrequirednumberLength in seconds.
artworknumberWhich built-in label design is printed on the disc (0, 1 or 2).
Dependencies
| Needs | Version | Comes from |
|---|---|---|
class-variance-authority | ^0.7.1 | npm, installed by the CLI |
lucide-react | ^0.556.0 | npm, installed by the CLI |
card | shadcn/ui, added by the CLI | |
button | shadcn/ui, added by the CLI | |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

