ColorPickerPanel beta ​

ColorPickerPanel is the core component of ColorPicker.

Basic usage ​

ColorPickerPanel requires a string typed variable to be bound to v-model.

Alpha ​

ColorPickerPanel supports alpha channel selecting. To activate alpha selecting, just add the show-alpha attribute.

Predefined colors ​

ColorPickerPanel supports predefined color options

Border ​

By default the color-picker-panel is bordered but in some case you don't want it.

No border:

Disabled ​

The disabled attribute determines if the color picker is fully disabled.

API ​

Attributes ​

NameDescriptionTypeDefault
model-value / v-modelbinding valuestring—
borderwhether the color picker panel is borderedbooleantrue
disabledwhether to disable the color pickerbooleanfalse
show-alphawhether to display the alpha sliderbooleanfalse
color-formatcolor format of v-modelenumenum
predefinepredefined color optionsarray—
validate-event 2.11.7whether to trigger form validationbooleantrue
hue-slider-class 2.13.6class names will be passed to hue-sliderobject—
hue-slider-style 2.13.6styles will be passed to hue-sliderstring / object—

Slots ​

NameDescription
footercontent to append after the Input

Exposes ​

NameDescriptionType
colorcurrent color objectobject
inputRefcustom input refobject
update 2.11.4update sub componentsFunction

Source ​

Component • Style • Docs

Contributors ​