Color Picker
Swatch trigger opening a popover with a saturation/lightness area, a hue slider, an optional alpha slider, and hex plus HSL value fields. Built on the Reka UI color primitives; the model value is a hex string.
Default
Bound with v-model to a hex string. The trigger previews the working color and shows the picked value.
Value: #3b82f6
With alpha
Pass alpha to add a transparency slider. The emitted hex grows to eight digits (#rrggbbaa) once alpha drops below 1, and the swatch reveals a checkerboard behind translucent values.
Value: #16a34acc
Empty state
With no value bound, the trigger falls back to placeholder text while still previewing the color the popover would apply.
Value: empty
Preset swatches
Pair the picker with quick-pick swatches to speed up common brand colors.
In a form field
Composed with Label and a hint line, the way it renders inside a form.
Used for buttons and highlights across the site.
Disabled
Non-interactive, dimmed state.
API Reference
ColorPicker
Accessibility
Keyboard shortcuts and ARIA behavior.
- The color area and each slider expose their channel name and value to screen readers.
- Hex and HSL fields accept typed input, so the picker never depends on pointer precision alone.
- Give the trigger an id and pair it with a Label so the control is announced with its purpose.