Selection
ColorPicker
A hue/saturation/lightness picker over a hex `v-model`, with an optional alpha track for an 8-digit hex and a `ColorSwatch` + hex code preview of the current selection.
<UiColorPicker />Options
One block per prop — what it does, and what it looks like set.
Model value
modelValue is the selected colour, bound two-way with v-model. The picker shows its own ColorSwatch and hex preview of whatever it currently holds.
Default value
defaultValue is the starting color when the picker manages its own state.
Alpha
alpha adds an alpha track and emits an 8-digit hex. The preview swatch shows the transparency too, over a checkerboard.
Disabled
disabled disables pointer interaction with the saturation/brightness selector and the hue/alpha tracks.
API Reference
Generated from the component's source — props, slots and emits as the component actually declares them.
Props
stringbooleanfalsebooleanfalseEmits
update:modelValue[value: string]