Updated
Music Player
ProCustomize
Ring width4px
Ring gap6px
Cover slide0.80s
Text morph500ms
Installation
ProMusic Player is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/music-player
Loading your installation…
Usage
import { MusicPlayer } from "@/components/uibrik/music-player/music-player";const tracks = [ { title: "Siren Song", artist: "Sela Moran", cover: "/registry/music-player/siren-song.webp", duration: "1:11", }, { title: "Inner Lights", artist: "Reid Sloan", cover: "/registry/music-player/inner-lights.webp", duration: "1:52", }, // …3 more];<MusicPlayer ringWidth={4} ringGap={6} coverDuration={0.8} morphDuration={500} tracks={tracks}/>Where to use Music Player
Music and podcast apps
A sliding cover stack and progress ring fit a full player in a small card.
Now-playing widgets
Rolling time and a compact layout suit dashboard and sidebar widgets.
Personal sites
A small player showing what you are listening to adds personality.
Props
MusicPlayer- ringWidth
- Type number
- 4
- Progress ring stroke width.
- ringGap
- Type number
- 6
- Gap between the card and the ring.
- coverDuration
- Type number
- 0.8
- How long the cover stack takes to slide.
- morphDuration
- Type number
- 500
- How long the title and artist take to morph.
- tracks
- Type Track[]
- SAMPLE_TRACKS
- Title, artist, cover image and m:ss duration per track.