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.
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | Product name. | |
| price | number | Price as a number, shown with the currency symbol. | |
| currency | string | "quot; | Currency symbol placed before the price. |
| description | string | Short text under the product name. | |
| rating | number | 0 to 5. | |
| colors | ProductColor[] | [] | Color options shown as swatches the user can pick. |
| badge | string | Small label on the card, such as "New" or "Sale". | |
| image | ReactNode | Product picture or any element shown at the top. | |
| onAdd | (color?: ProductColor) => void | Called when the add button is clicked, with the selected color if any. | |
| className | string | Extra classes added to the outer element. |