Components
Components
ColorPicker
Composable color picker with area, hue and alpha sliders, hex field, and swatch presets.
newfree
Install
@hewnui/ui · hewnui
ColorPicker synchronizes React Aria ColorArea, ColorSlider, ColorField, and swatch presets. Returns a hex string and can show a read-only OKLCH readout. Lives under Pickers in the component gallery.
OKLCH
Usage
Inline panel
Presets and alpha
Accessibility
- Labeled saturation/brightness area, hue slider, and alpha slider
- Hex field for precise entry
- Keyboard navigation across area, sliders, field, and swatches
- Hidden
nameinput for HTML form submission
API reference
Props for ColorPicker from @hewnui/ui/color-picker. Generated from component types — not hand-written.
Prop
Type