Product Card
A production-scale, light + dark Product Card component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add product-cardLive preview available in the gallery.
Usage
import { ProductCard } from "@lerpa/ui";
<ProductCard />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| product | Product | - | |
| onAddToCart | (product: Product) => void | — | |
| onFavoriteClick | (product: Product) => void | — | |
| isFavorited | boolean | — | |
| className | string | — | |
| noMotion | boolean | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.