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.
Disabled
The disabled
attribute determines if the color picker is fully disabled.
API
Attributes
Name | Description | Type | Default |
---|---|---|---|
model-value / v-model | binding value | string | — |
border | whether the color picker is bordered | boolean | true |
disabled | whether to disable the color picker | boolean | false |
show-alpha | whether to display the alpha slider | boolean | false |
color-format | color format of v-model | enum | — |
predefine | predefined color options | object | — |
Exposes
Name | Description | Type |
---|---|---|
color | current color object | object |
inputRef | custom input ref | object |