Product Swatch Picker
A production-scale, light + dark Product Swatch Picker component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add product-swatch-pickerUsage
import { ProductSwatchPicker } from "@lerpa/ui";
<ProductSwatchPicker />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| swatches | ProductSwatch[] | — | |
| defaultSelected | string | — | |
| onChange | (swatch: ProductSwatch) => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.