Forms

ColorPicker

Edit a color in a picker with a hex field, hue control, and optional opacity.

Basic usage

Use parseColor to create the initial value. Open the picker and try the opacity control enabled by ColorPicker.Content alpha.

API

Key props and defaults.

PropValues and behaviorDefault
value / defaultValueColor—
onValueChange(details) => void—
namestring—
alpha (Content)booleanfalse
hexLabel / hueLabel / alphaLabel (Content)stringHex / Hue / Opacity