Product Card
E-commerce product card on the D2 card primitive: colour swatches that cross-fade the photo, a wishlist heart that swaps with a blur, a derived sale badge and an add-to-bag button whose icon and label swap in place. Reduced-motion aware.

- Library
- D2Studio UI
- Framework
- React
- Type
- component
- License
- MIT
- Dependencies
- lucide-react
- Install
npx shadcn@latest add https://d2studio.dev/r/card-ecommerce-01.json- Files
registry/default/components/card-ecommerce-01.tsxregistry/default/ui/badge.tsxregistry/default/ui/button.tsxregistry/default/ui/card.tsxlib/utils.ts
- Source
- https://github.com/rajaaltus/d2studio-ui
Categories
- Card Components
- React Card Components
- Tailwind CSS Card Components
- Commerce Components
- React Commerce Components
- Tailwind CSS Commerce Components
- Data Display Components
- React Data Display Components
- Tailwind CSS Data Display Components
- Product Card Components
- React Product Card Components