Kavi Katiyar

Card

Cards 53

About

Music Card A visually engaging card component for displaying music tracks, featuring hover animations and a theme-adaptive design.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Card to your project and fits it to your theme.

Code

How Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { MusicCard } from "@/components/ui/card-6"; // Adjust this import path as needed

const MusicCardDemo = () => {
  const handlePlay = () => {
    // In a real app, you would trigger your music player logic here
    alert("Playing: Far Caspian - Let's Go Outside");
  };

  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-4">
      <MusicCard
        title="Now Playing"
        artist="Far Caspian"
        songTitle="Let's Go Outside"
        imageUrl="https://cdn.21st.dev/assets/mirror/ea/ea808267daa3bb86bfaa16b1b39b77408135a27b147a5c4022f5c8cdf8eaba7d.jpg"
        onPlay={handlePlay}
      />
    </div>
  );
};

export default MusicCardDemo;

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    981
  • Bento Product Features

    Bento Product Features

    831
  • Testimonial Slider

    Testimonial Slider

    716
  • Card

    Card

    607
  • Order Confirmation Card

    Order Confirmation Card

    504
  • Project Detail View

    Project Detail View

    408
  • State

    State

    393
  • Animated Card

    Animated Card

    393

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3