Color Picker
A production-scale, light + dark Color Picker component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add color-pickerLive preview available in the gallery.
Usage
import { ColorPicker } from "@lerpa/ui";
<ColorPicker />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | |
| onChange | (hex: string) => void | — | |
| swatches | string[] | — | |
| className | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.