Appearance
FormColorPicker
The native colour input with a hex field (and opacity) and a palette.
ts
import { FormColorPicker } from '@zairakai/vue-components/Form'Usage
vue
<FormColorPicker />Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | ||
class | string | ||
modelValue | string | undefined | #rrggbb, or #rrggbbaa with alpha. |
palette | array | [] | Ready made colours to click. |
alpha | boolean | false | |
label | string | ||
name | string | ||
form | string | ||
disabled | boolean | false | |
hexLabel | string | 'Hex colour' | |
alphaLabel | string | 'Opacity' |
Events
| Name | Description |
|---|---|
update:modelValue |
See Theming for the class hooks and the data-* state of the components.