E-commerce
ProductCard
Catalog item card with image, price metadata, rating, wishlist, and add-to-cart action.
Quick Preview
Sale
Premium Wireless Headphones
(312)
$149.00$199.00
Installation
npm install lucide-react
Examples
Product grid
Sale
Premium Wireless Headphones
(312)
$149.00$199.00
Mechanical Keyboard
(87)
$89.00
New
USB-C Monitor 27"
(203)
$449.00$549.00
Noise Cancelling Earbuds
$199.00
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
id* | string | number | - | Unique product identifier |
name* | string | - | Product name |
price* | number | - | Current price |
originalPrice | number | - | Original price (shows discount %) |
currency | string | '$' | Currency symbol |
rating | number | - | Star rating (0โ5) |
reviewCount | number | - | Number of reviews |
imageUrl | string | - | Product image URL |
badge | string | - | Badge label (e.g. Sale, New) |
badgeColor | string | - | Badge Tailwind classes |
inStock | boolean | true | Stock availability |
onAddToCart | (id) => void | - | Add to cart callback |
onWishlist | (id) => void | - | Wishlist toggle callback |
className | string | - | Additional CSS classes |