Skip to content

ColorPickerPanel

Full-featured color picker panel. Built on colord, featuring an HSV color area, hue/alpha sliders, hex input, and predefined color swatches. Always visible — ideal for embedding in forms or using as a standalone panel.

Basic Usage

vue
<TColorPickerPanel v-model="color" />

Output Format

vue
<TColorPickerPanel v-model="color" color-format="rgb" />

Alpha Support

vue
<TColorPickerPanel v-model="color" show-alpha />

Predefined Colors

vue
<TColorPickerPanel
  v-model="color"
  :predefine="['#f00', '#ff0', '#0f0']"
/>

API

Props

PropTypeDefaultDescription
v-modelstring'#066fd1'Color value
color-format'hex' | '#hex' | 'rgb' | 'hsv' | 'hsl''#hex'Output format
show-alphabooleanfalseShow alpha slider
predefinestring[]Predefined color swatches
disabledbooleanfalseDisabled state

Emits

EventDescriptionCallback
update:modelValuev-model update(value: string)
changeColor changed(value: string)