Music Player Demo
nyxui/music-player-demoFreeExample
Example showing a music player.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://nyxui.com/r/music-player-demo.jsonSource
1import React from "react";2import { MusicPlayer } from "../ui/music-player";3import type { Track } from "../ui/music-player";45export default function MusicPlayerCardsDemo() {6 const currentTrack: Track = {7 id: "1",8 title: "Blinding Lights",9 artist: "The Weeknd",10 album: "After Hours",11 artwork: "/assets/images/music-player/song.jpg",12 duration: 194, // 3:14 in seconds13 };1415 const queue: Track[] = [currentTrack];1617 return (18 <div className="flex flex-col items-center w-full relative">19 <div className="flex flex-col w-full max-w-sm">20 <MusicPlayer21 theme="spotify"22 currentTrack={currentTrack}23 queue={queue}24 currentIndex={0}25 initialTime={30}26 autoPlay={false}27 showEqualizer={true}28 className="rounded-xl"29 />30 </div>31 </div>32 );33}
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 68 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 3D Layered Card Demo3d-layered-card-demo | shadcn/ui | Examples | Free | no deps | |
| Animated Code Block Demoanimated-code-block-demo | shadcn/ui | Examples | Free | no deps | |
| Animated Grainy Background Demoanimated-grainy-bg-demo | shadcn/ui | Examples | Free | no deps | |
| Animated Text Demoanimated-text-demo | shadcn/ui | Examples | Free | no deps | |
| Apple Glass Effect Demoapple-glass-effect-demo | shadcn/ui | Examples | Free | no deps | |
| Bubble Background Demobubble-background-demo | shadcn/ui | Examples | Free | no deps | |
| Custom Cursor Democustom-cursor-demo | shadcn/ui | Examples | Free | no deps | |
| Cyberpunk Card Democyberpunk-card-demo | shadcn/ui | Examples | Free | no deps |
