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
valuestring—Controlled hex color string.
onChange(v: string) => void—Called on color change.
swatchesstring[]—Preset color swatches to display.
disabledbooleanfalseDisables the picker.
format'hex'|'rgb'|'hsl''hex'Output color format.