Skip to content

ColorCheck ​

Color swatch selector component. Uses colord for color format conversion and automatic brightness detection.

Basic Usage ​

vue
<TColorCheck color="#066fd1" v-model="selected" />
<TColorCheck color="#d63939" v-model="selected" />

Multiple Select ​

vue
<TColorCheck color="#066fd1" multiple v-model="selected" />

Rounded ​

vue
<TColorCheck color="#2fb344" rounded v-model="selected" />

Output Format (color-format) ​

vue
<TColorCheck color="#066fd1" color-format="rgb" v-model="color" />

Array Mode (colors) ​

vue
<TColorCheck v-model="selected" :colors="[
  { color: '#066fd1' },
  { color: '#d63939' },
  { color: '#2fb344' },
]" />

Disabled ​

vue
<TColorCheck color="#066fd1" v-model="color" disabled />

API ​

Props ​

PropTypeDefaultDescription
v-modelany | any[]—Bound value (single: any type, multiple: array)
colorstring'#066fd1'Swatch color. Accepts #hex / hex / rgb() / hsl() / rgba()
colorsColorCheckOption[]—Option array, renders multiple swatches
color-format'hex' | '#hex' | 'rgb' | 'hsv' | 'hsl'—Output format (default: raw value)
multiplebooleanfalseEnable multi-select
roundedbooleanfalseRounded circular swatches
disabledbooleanfalseDisabled state
namestring—Native name attribute (auto-generated for radio groups)