Product Card

Pick a colour and the product recolours. Heart it, add it to the cart.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

ProductCard props

PropTypeDefaultDescription
namestringProduct name.
pricenumberPrice as a number, shown with the currency symbol.
currencystring"
quot;
Currency symbol placed before the price.
descriptionstringShort text under the product name.
ratingnumber0 to 5.
colorsProductColor[][]Color options shown as swatches the user can pick.
badgestringSmall label on the card, such as "New" or "Sale".
imageReactNodeProduct picture or any element shown at the top.
onAdd(color?: ProductColor) => voidCalled when the add button is clicked, with the selected color if any.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks