Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A turntable whose tonearm swings onto the record and spins it, with the album cover as the label.
npx shadcn@latest add @venusui/vinyl-playerRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/vinyl-player.tsxThe code behind the preview above.
vinyl-player-demo.tsx
import { VinylPlayer } from "@/components/ui/vinyl-player"
// Cover: Unsplash (free under the Unsplash License). Artist and track are made up.
export default function VinylPlayerDemo() {
return (
<VinylPlayer
className="w-[min(26rem,calc(100vw-3rem))]"
title="Tidal Bloom"
artist="Mara Lune"
cover={{
src: "https://images.unsplash.com/photo-1557672172-298e090bd0f1?w=400&h=400&fit=crop&auto=format&q=80",
alt: "Album cover: swirls of pink and teal paint",
}}
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| cover | { src: string; alt: string } | — | Album cover, shown as the record's label. |
| title, artist | string | — | Shown under the player and in the play button's label. |
| playing | boolean | — | Controlled playing state. |
| defaultPlaying | boolean | false | Start playing. |
| onPlayingChange | (playing: boolean) => void | — | Called when the play button or the record is pressed. |
| speed | number | 1.8 | Seconds per turn. 1.8 is a real 33⅓ rpm record. |
All <div> props.
lucide-react for the play and pause icons. React 19 and Tailwind CSS v4.onPlayingChange to your own <audio> element to play the track.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A card that tilts in 3D toward the pointer with spring physics.
A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.
Stacked cards with the next ones peeking out; Next sends the top card to the back.