Socket
Socket
Sign inDemoInstall

@ckpack/vue-color

Package Overview
Dependencies
23
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ckpack/vue-color

(vue3.0) 🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more


Version published
Weekly downloads
22K
decreased by-0.54%
Maintainers
1
Install size
703 kB
Created
Weekly downloads
 

Changelog

Source

1.5.0 (2023-06-15)

Features

  • chrome compoent add a props named format (hex, rgb, etc) and an event update:format; fix #28 (c9f3a5c)

Readme

Source

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.

Keywords

FAQs

Last updated on 15 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc