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 is borderedbooleantrue
disabledwhether to disable the color pickerbooleanfalse
show-alphawhether to display the alpha sliderbooleanfalse
color-formatcolor format of v-modelenum
predefinepredefined color optionsobject

Exposes

NameDescriptionType
colorcurrent color objectobject
inputRefcustom input refobject

Source

ComponentStyleDocs

Contributors