ColorPicker
Color picker with swatch grid, hex code input, and opacity slider.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | "#3B82F6" | Current hex color value |
| opacity | number | 100 | Color opacity (0–100) |
| onValueChange | (color: string) => void | — | Called when color changes |
| onOpacityChange | (opacity: number) => void | — | Called when opacity changes |
| presets | string[] | — | Array of hex color presets |
| className | string | — | Additional CSS classes |