Form
Color Picker
The browser color input with the hex value and a copy-to-clipboard button.
import { ColorPickerComponent } from '@/MigsLab/shared'
Example
#2563eb
const brandColor = ref('#2563eb')
<ColorPickerComponent v-model="brandColor" />API
Props
| Name | Type | Default | Description |
|---|---|---|---|
v-model | string | '#000000' | Color as a #rrggbb hex string. |
disabled | boolean | false | Disable the color input. |
Events
| Event | Payload | Description |
|---|---|---|
copied | string | The value was copied to the clipboard. |