Installation
Examples
Swatch grid
Quick-pick from preset colors.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | Controlled hex color string. |
| onChange | (v: string) => void | — | Called on color change. |
| swatches | string[] | — | Preset color swatches to display. |
| disabled | boolean | false | Disables the picker. |
| format | 'hex'|'rgb'|'hsl' | 'hex' | Output color format. |