Product Card
PronewA storefront card with media, a price, badges and actions.
4.8(1,204)
4.6(312)
Installation
npx shadcn@latest add @blank-pro/product-cardNeeds a Blank Pro licence key and the @blank-pro registry. Set up Pro access
Usage
import {
ProductCard,
ProductCardContent,
ProductCardHeader,
ProductCardMedia,
ProductCardOverlay,
ProductCardPrice,
ProductCardTitle,
} from "@/components/ui/product-card"<ProductCard>
<ProductCardMedia>
<img src="/headphones.jpg" alt="Studio Wireless" />
<ProductCardOverlay>
<Badge>New</Badge>
</ProductCardOverlay>
</ProductCardMedia>
<ProductCardContent>
<ProductCardHeader>
<ProductCardTitle>Studio Wireless</ProductCardTitle>
<ProductCardPrice>$249</ProductCardPrice>
</ProductCardHeader>
</ProductCardContent>
</ProductCard>ProductCardOverlay floats over the media with its children spread to the two
corners — a badge on the left, a save button on the right. Put the old price in
a <del> inside ProductCardPrice to show a markdown.
Examples
With a slideshow
variant="ghost" is the storefront grid look: the image carries the frame and
the copy sits under it. Any media works in ProductCardMedia — here, a
Preview Card Slideshow.
Alpine Light — Lightroom presets
$29
NNora Lind3.2k