Founding price: $35, then $79.99 after 23:59 UTC on 4 November, then $79.99
Get ProA complete color picker made of the color family: area, hue and opacity sliders, hex field, eyedropper and preset swatches, in a panel or a popover, with the hue kept steady when the color goes gray or black.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
onChange receives #rrggbb, or #rrggbbaa when alpha is on and the color is not fully opaque. The panel installs the area, sliders, field, swatch picker and eyedropper; each can be used alone too.
| Prop | Type | Default | Description |
|---|---|---|---|
value / onChange | string | - | The color. |
alpha | boolean | false | Opacity slider and eight-digit hex. |
swatches | (string | { value, name? })[] | ten presets | [] hides the presets. |
eyedropper | boolean | true | Shown only in browsers that have the API. |
ColorPickerPopover adds label (accessible name, shown in the trigger name with the current hex) and disabled.
The component ships with a Testing Library test (color-picker-panel.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.