deltacomponents

Product Card

Cards

About

A compound card component for e-commerce product listings with an image well, an overlaid wishlist badge, and a title/subtitle/price footer.

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

Code

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

Usage.tsx

import {
  ProductCard,
  ProductCardContent,
  ProductCardHeader,
  ProductCardImage,
  ProductCardMetric,
  ProductCardSubtitle,
  ProductCardTitle,
} from "@/components/ui/product-card";

export default function ProductCardOverrideStyling() {
  return (
    <ProductCard className="border-border/60 bg-card rounded-2xl border p-2">
      <ProductCardImage
        src="https://cdn.21st.dev/assets/localized/fb1c2b03e0bf5da10d8286d5496e559f07f5d7e011f8f4922a601974467d7986.png"
        alt="Twemco Clock"
        className="rounded-lg"
      />
      <ProductCardContent className="px-1 pt-3 pb-1">
        <ProductCardHeader>
          <ProductCardTitle className="font-semibold tracking-tight">
            Twemco Clock
          </ProductCardTitle>
          <ProductCardSubtitle className="text-[0.85em] tracking-wider uppercase">
            Desk clock
          </ProductCardSubtitle>
        </ProductCardHeader>
        <ProductCardMetric className="tabular-nums">$219</ProductCardMetric>
      </ProductCardContent>
    </ProductCard>
  );
}

More by deltacomponents

View all
  • Basic Dropdown

    Basic Dropdown

    65
  • Scramble text

    Scramble text

    30
  • Admonition

    Admonition

    28
  • Auth Form

    Auth Form

    13
  • MP3 Player

    MP3 Player

    12
  • Modal Drop

    Modal Drop

    9
  • Admin Inset Layout

    Admin Inset Layout

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

Explore more

Part of deltacomponents — browse the full library on 21st.dev.