Skip to content

ColorPicker

Basic usage

Disabled

Size

Disabled Alpha

Clear

Custom Trigger

Preset Colors

ColorPicker API

ColorPicker Attributes

NameDescriptionTypeDefaultVersion
allowClearAllow clearing color selectedbooleanfalse
disabledDisable ColorPickerbooleanfalse
disabledAlphaDisable Alphabooleanfalse
formatFormat of colorauto | rgb | hex | hslauto
presetsPreset colorsstring[][]
value(v-model)Value of colorstring
sizeSetting the trigger sizelarge | default | small

ColorPicker Events

NameDescriptionType
changeCallback when value is changed(color: string) => void
clearCalled when clear() => void

ColorPicker Slots

NameDescription
defaultCustom Trigger

Contributors

lazy

ChangeLog

86f13 - style: 兼容下样式 on 3/13/2025
cebe3 - fix: 修复select宽度问题 on 3/13/2025
7bf1f - feat: color-picker on 3/12/2025

Released under the MIT License.