ColorPicker
Pick a colour with an area, a hue slider, a hex field and presets — in a popover, inline, or as a hex text field with a colour dot.
Basic
A button with the colour; the popover holds the area, the hue slider and the hex field.
Inline
inline shows the panel in place.
Field
field turns the picker into a text field with a colour dot: type a hex like #3c6 or open the picker from the dot. On blur a valid colour becomes #rrggbb; anything else keeps the field invalid.
Presets
Preset swatches for the colours your product uses, and a clear button.
Formats
format sets the type of the value: hex text, an RGB or an HSB object.
States
Sizes, invalid, disabled and read-only.
Design tokens
dt changes the colorPicker tokens of one picker.