vue-ps-colorpicker
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

vue-ps-colorpicker

vue-ps-colorpicker is Photoshop style colorpicker in vue.

Install

The recommended way to install and maintain vue-ps-colorpicker in your project is through the Node.js Pacakge Manager (NPM), simply type the npm command in your project folder:

npm install

Usage

To use vue-ps-colorpicker, you have to import the component

import { PsColorpicker } from 'vue-ps-colorpicker'
 
// ...
export default {
  components: { PsColorpicker },
  // ...
}

The colorpicker component takes only one input, with the form of { red: number, green: number, blue: number, alpha: number }, each channel is range from 0 to 1.

<ps-colorpicker :color="color"></ps-colorpicker>

Light The colorpicker also has a dark style, just add a dark class on the tag.

<ps-colorpicker :color="color" class="dark"></ps-colorpicker>

Light

Demo and Doc

Build demo by

npm run demo

You can view the demos on my Github Pages.

License

Distributed under the MIT license. See LICENSE for detail.

/vue-ps-colorpicker/

    Package Sidebar

    Install

    npm i vue-ps-colorpicker

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    944 kB

    Total Files

    11

    Last publish

    Collaborators

    • luz-alphacode