Atelier UI

Search components…

Search components…

Product Card

Product tile with badge, star rating, strikethrough price, an Add to cart toggle and a wishlist heart.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ProductCardProps

Also accepts all props of Omit<React.ComponentProps<"div">, "title">

PropTypeDefaultDescription
name* requiredstring——
price* requirednumber——
originalPricenumber—Original price, shown with a strikethrough
rating* requirednumber—0-5, supports halves visually by rounding
reviewsnumber——
badgestring—e.g. "New" or "-20%"
imageClassNamestring"from-amber-300 via-orange-400 to-rose-500"Tailwind gradient utilities for the image placeholder
currencystring"$"—
onAddToCart(added: boolean) => void——
onWishlistChange(wished: boolean) => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/product-card.json

More like this