Color Picker
stableAn HSV color picker with hue and alpha sliders.
Basic usage
Examples
Without alpha slider
Omit the AlphaSlider for opaque color selection only.
Theme color editor
Compose area, hue, alpha and swatch controls for theme builder surfaces.
Primary accent
Features
- Saturation / value area.
- Hue + alpha sliders.
Installation
bash
pnpm dlx structyl add color-pickerAPI Reference
ColorPicker.Root
An HSV color picker.
| Prop | Type | Default |
|---|---|---|
| value | HsvaColorControlled color. | — |
| onValueChange | (value: HsvaColor) => voidCalled when the color changes. | — |
| disabled | booleanDisable the picker. | — |
ColorPicker.Area
The saturation / value 2-D area.
| Prop | Type | Default |
|---|
ColorPicker.HueSlider
The hue slider.
| Prop | Type | Default |
|---|
ColorPicker.AlphaSlider
The alpha slider.
| Prop | Type | Default |
|---|
ColorPicker.Swatch
A preview of the current color.
| Prop | Type | Default |
|---|