Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 990 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 990 Bytes

NPM Version

Lightweight Vue Color Picker Component

Since all color pickers I found were too large or too complex, I decided to create my own.

The bundle size of the component is 9.6 KB (minified) and 3.9 KB (gzipped).

Installation

npm install @mergehez/vue-color-picker
bun install @mergehez/vue-color-picker
pnpm install @mergehez/vue-color-picker

Usage

<script setup>
  import ColorPicker from '@mergehez/vue-color-picker';
  import '@mergehez/vue-color-picker/styles.css';

  const color = ref('#ff0000');
</script>
<template>
  <div>
    <ColorPicker v-model="color" />
  </div>
</template>

Note

Go to ColorPicker.vue for available props.