Components/ColorPicker

ColorPicker

Color selector with hex input, hue slider, and preset swatches.

Installation

Examples

Swatch grid

Quick-pick from preset colors.

API Reference

PropTypeDefaultDescription
valuestringControlled hex color string.
onChange(v: string) => voidCalled on color change.
swatchesstring[]Preset color swatches to display.
disabledbooleanfalseDisables the picker.
format'hex'|'rgb'|'hsl''hex'Output color format.