@ckpack/vue-color

(vue3.0) ๐ŸŽจ Vue Color Pickers for Sketch, Photoshop, Chrome & more
4,440,283 188
Install
npm install @ckpack/vue-color
Latest Version:1.6.0
Vue:3
License:MIT
Last Updated:Jul 19, 2024
Links: GitHub  ·  npm
Maintainer: ckpack

vue-color

Modified based on https://github.com/xiaokaike/vue-color to support vue3.0

๐ŸŽจ Vue Color Pickers for Sketch, Photoshop, Chrome & more

image

Demo

Use case

On demand

We can import components we actually need, making the project smaller than otherwise.

Import Directly
<template>
  <Sketch v-model="colors"/>
</template>
<script setup>
import { ref } from 'vue';
import { Sketch } from '@ckpack/vue-color';

const colors = ref('#194D33A8'); // etc: { h: 150, s: 0.66, v: 0.30 }, { r: 255, g: 0, b: 0 }, '#194d33' 
</script>
Install on Demand Globally
import { createApp } from 'vue';
import App from '@/App.vue';
import { Sketch, create } from '@ckpack/vue-color';

const app = createApp(App);
app.use(create({
  components: [Sketch],
}));
app.mount('#app');
Fully import
import { createApp } from 'vue';
import App from '@/App.vue';
import VueColor from '@ckpack/vue-color';

const app = createApp(App);

app.use(VueColor);
app.mount('#app');

CHANGELOG

License

vue-color is licensed under The MIT License.

Related Packages

@apostrophecms/vue-color

Fork of vue-color that allows null values

9,228 0
vue-color-sketch

Color of Vue Components

1,882
@caohenghu/vue-colorpicker

Colorpicker of Vue Components

92,829 120
@fastkit/vue-color-scheme

A library for using Type-safe "color" schemas in Vue applications.

9,653 6
@aurouscia/au-color-picker

vue3้ขœ่‰ฒ้€‰ๆ‹ฉๅ™จ็ป„ไปถ

2,617

Version History

Version Released Vue License
1.6.0 ^3.2.0 MIT
1.5.2 ^3.2.0 MIT
1.5.0 ^3.2.0
1.4.1 ^3.2.0
1.4.0 ^3.2.0