xiaokaike / vue-color

:art: Vue Color Pickers for Sketch, Photoshop, Chrome & more http://vue-color.surge.sh
https://xiaokaike.github.io/vue-color/
MIT License
2.53k stars 356 forks source link

Usage Docs not clear #223

Closed alfligno closed 3 years ago

alfligno commented 3 years ago

It is not clear to me on how do I import the swatches-picker well in fact the import should be import { Photoshop } from 'vue-color'

Also I did tried

import Vue from 'vue'
import { Photoshop, swatches } from 'vue-color'

Vue.component('swatches-picker', swatches);

but no luck, Can you make it clear to the reader on how to properly use its sub component? specially for beginners

alfligno commented 3 years ago

Got it working now it should be import { Swatches } from 'vue-color' s should be uppercase

wucyAAA commented 1 year ago

@alfligno thanks you a lot