Docs / Components / Music Player Card

Music Player Card

A beautifully styled, fully functional glassmorphic music player card.

Diljit Dosanjh
Diljit Dosanjh

GOAT

0:33-1:40

Dependencies

Install the following dependencies to use this component:

1npm install motion lucide-react

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add music-player-card

Props Reference

PropTypeDefaultDescription
artistNamestring'Diljit Dosanjh'The name of the featured artist.
artistHandlestring'@diljitdosanjh'The social handle of the artist.
artistAvatarstringUnsplash URLURL pointing to the artist's avatar image.
coverArtstringUnsplash URLURL pointing to the background track cover art.
songNamestring'GOAT'The name of the current track/song.
durationnumber133Total duration of the track in seconds.
classNamestring''Additional Tailwind CSS classes.