Skip to content

    Browse components

    Media Card

    Music player card with cover art, a scrubbable progress bar, a morphing play/pause icon and a live equalizer.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/media-card

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/media-card.json

    Usage

    import { MediaCard } from "@/components/ui/media-card";
    
    <MediaCard
      tracks={[{ title: "Midnight Transit", artist: "Nova Harbor", cover: "/cover.jpg", duration: 214 }]}
      accent="#a3e635"
    />

    Props

    PropTypeDefaultDescription
    tracksReactNode—Array of { title, artist, cover, duration } (duration in seconds).
    accentstring"#a3e635"Progress, play button and equalizer color.
    autoPlaybooleanfalseStart playing on mount.
    barsnumber4Number of equalizer bars.
    glowbooleantrueBlurred cover glow behind the card.
    classNamestring—Extra classes for the root element.