A color picker component library
npm install @cyhnkckali/vue3-color-picker
npm i @cyhnkckali/vue3-color-picker
`
#### Yarn Install
`
yarn add @cyhnkckali/vue3-color-picker
`
#### Import
##### Import where you want to use it
`
import {Vue3ColorPicker} from '@cyhnkckali/vue3-color-picker';
`
#### Import the style file into your main.js file
`
import '@cyhnkckali/vue3-color-picker/dist/style.css'
`
Use/Examples
`javascript
`
Options
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| v-model | string | default ''|
| mode | string | solid or gradient default gradient|
| theme | string | light or dark default light|
| type | string | Return colour value type HEX8 RGBA RGB HEX default HEX8|
| inputType | string | Input type of colour values RGB HSL HSV CMYK default RGB|
| disabled | boolean | default false |
| local | object | default { angle: '', positionX: '', positionY: '', solid: '', gradient: '', linear: '', radial: '', colorPalette: '', btnSaveLabel:'Save', btnCancelLabel:'Cancel' } |
| colorListCount | number | Determines how many colours to keep in the colour list default 18|
| showColorList | boolean | default true |
| showEyeDrop | boolean | default true Supports Chrome and Edge only |
| showAlpha | boolean | default true |
| showInputMenu | boolean | default true |
| showInputSet | boolean | default true |
| showPickerMode | boolean | default true |
| iconClasses | object | default { ruler: '', eyeDroper: '', arrowDown: '', save: '', delete: '' } |
| gradientMode | linear or radial | default linear Sets the initial gradient mode when the picker is started |
| showButtons | boolean | default true |
Emits
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| update:model-value | event | return 'color value'|
| onSave | event | return 'color value'|
| onCancel | event | return 'color value'`|