Package Exports
- @ckpack/vue-color
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ckpack/vue-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-color
Modified based on https://github.com/xiaokaike/vue-color to support vue3.0
🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more

Demo
Example
<Sketch v-model="colors"/>
import { Sketch } from '@ckpack/vue-color';
let colors = {
hex: '#194d33',
hex8: '#194D33A8',
hsl: { h: 150, s: 0.5, l: 0.2, a: 1 },
hsv: { h: 150, s: 0.66, v: 0.30, a: 1 },
rgba: { r: 25, g: 77, b: 51, a: 1 },
a: 1
};
// or
let colors = '#194d33';
// or
let colors = '#194D33A8';
// or
let colors = { h: 150, s: 0.66, v: 0.30 };
// or
let colors = { r: 255, g: 0, b: 0 };
// etc...
new Vue({
components: {
Sketch,
},
data () {
return {
colors,
};
},
});License
vue-color is licensed under The MIT License.