Loading component…
Components /Music Player
Collapsible glass music player with equalizer and seekable progress
Run the following command
npx shadcn@latest add https://raw.githubusercontent.com/Ashutoshx7/VengeanceUI/main/public/r/music-player.json| Prop Name | Type | Default | Description |
|---|---|---|---|
| tracks | MusicTrack[] | - | Playlist to play through: { title, artist, src, artwork? }. Renders nothing when empty. |
| avatar | string | - | Floating avatar image. Falls back to the current track's artwork. |
| startIndex | number | 0 | Index of the track to start on. |
| autoPlay | boolean | false | Begin playing as soon as the player mounts (browsers may block until interaction). |
| loop | boolean | true | Wrap from the last track back to the first when a track ends. |
| defaultCollapsed | boolean | false | Render collapsed (compact pill) on first paint. |
| showProgress | boolean | true | Show the seekable progress bar along the bottom edge. |
| accentColor | string | 'currentColor' | Accent color for the equalizer bars and progress fill. |
| onTrackChange | (track: MusicTrack, index: number) => void | - | Called whenever the active track changes. |
| className | string | - | Additional classes for the root element. |