@mcistudio/vue-colorpicker
v2.2.3
Published
a Vue3.x Based Colorpicker Component.
Downloads
1,110
Maintainers
Readme
a Vue3.x based colorpicker component.
Features
- Supports 3 CSS background color modes:
solid
,linear-gradient
andradial-gradient
. - Supports color opacity(alpha) adjustment.
- Supports gradient bar control, easily drag/add/delete the control points.
- The EyeDropper can quickly pick any color from your screen. (supports Google Chrome version 95+)
- Supports live preview.
Screenshots
Installation
npm i @mcistudio/vue-colorpicker
How to Use
Global Registration
main.js
import ColorPicker from '@mcistudio/vue-colorpicker'
import '@mcistudio/vue-colorpicker/style.css'
createApp(App)
.use(ColorPicker)
.mount("#app");
OR
Local Registration
HelloWorld.vue
<script setup>
import ColorPicker from '@mcistudio/vue-colorpicker'
import '@mcistudio/vue-colorpicker/dist/style.css'
<template>
<ColorPicker></ColorPicker>
</template>
</script>