Color Picker base on Vue2.x

Overview

Vue Color Picker

Color Picker base on Vue2.x

Take a glance

Online Demo

Installation

npm i -S @duoa/vue-color-picker

Usage

Register the component

import Vue from 'vue'
import VueColorPicker from '@duoa/vue-color-picker'
// Because this components has its styles, you must also import the css file.
import '@duoa/vue-color-picker/dist/vue-color-picker.css'

// Register
Vue.use(VueColorPicker)

Declare the component

">
<template>
  <vue-color-picker v-model="color" />
template>
<script>
export default {
  data () {
    return {
      color: '#ff00ff'
    }
  }
}
script>

That's all you need to do!

If you want to customize the component name. Here is an example.

import Vue from 'vue'
import { component } from '@duoa/vue-color-picker'
import '@duoa/vue-color-picker/dist/vue-color-picker.css'

// Register
Vue.component('MyColorPicker', component)

Configuration

Name Type Default Value Required Description
value / v-model string '' -- binding value
colorFormat string hex (when show-alpha is false)/ rgb (when show-alpha is true) -- color format of v-model, hsl / hsv / hex / rgb is accepted
showAlpha boolean false -- whether to display the alpha slider
disabled boolean false -- whether to disable the picker
appendToBody boolean false -- whether to append picker popup itself to body. A nested picker popup should have this attribute set to true
predefine array [] -- predefined color options
stop boolean false -- stopPropagation when mousedown or click on popup
prevent boolean false -- preventDefault when mousedown or click on popup

Events

Event Name Description Parameters
before-open triggers before the picker opens --
change triggers when the selected color changes current selected color
close triggers when the picker closes --
You might also like...
Color picker for vue using Tailwind v2
Color picker for vue using Tailwind v2

Vue Tailwind Color Picker Color picker for vue using Tailwind v2. Requires Tailwind Live demo Installation $ npm install vue-tailwind-color-picker $ y

A color picker vue component

A color picker vue component

Color picker Vue.js component

vue-colorpicker Color picker Vue.js component.

Cordelia Vue - a VueJS plugin that allows you to add a rich color picker into your web pages

Color picker for web and mobile browsers. Vue plugin version of Cordelia Color Picker library.

Vue color picker

Vue color picker Iro color picker for Vue. Demo See demo here Install npm install vue-iro-color-picker --save Usage import ColorPicker from 'vue-iro-

A Vue3.x based color picker component with gradient bar control.
A Vue3.x based color picker component with gradient bar control.

a Vue3.x based color picker component. English | 中文 Features Supports 3 CSS background color modes: solid, linear-gradient and radial-gradient. Suppor

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

🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more

Color Codes for brands

Default starter for Gridsome This is the project you get when you run gridsome create new-project. 1. Install Gridsome CLI tool if you don't have npm

Lightweight color shader/blender/converter plugin implemented for Vue 2.
Lightweight color shader/blender/converter plugin implemented for Vue 2.

Vue Color Blender/Shader/Converter Lightweight color shader/blender/converter plugin implemented for Vue 2. Disclaimer The algoritmn used in this plug

Owner
阿多
Web Developer
阿多
Vue Color Picker using native input type color.

Lightweight color picker that uses the native HTML element input type color.

David Custódio 14 Sep 21, 2022
:art: Vue Color Pickers for Sketch, Photoshop, Chrome & more http://vue-color.surge.sh

vue-color Color Pickers for Sketch, Photoshop, Chrome & more with Vue.js(vue2.0). Live demo Installation NPM $ npm install vue-color CommonJS var Phot

Don 2.4k Dec 29, 2022
Radial Color Picker - Vue

Radial Color Picker - Vue Introduction Great UX starts with two basic principles - ease of use and simplicity. Selecting a color should be as easy as

Radial Color Picker 83 Dec 28, 2022
🎨 A natural color picker component for Vue.js

Color picker for Vue.js A Vue.js color picker component designed for humans. Installation npm i --save-dev vue-color-picker-board Browser Include the

Shlomi Nissan 11 Nov 24, 2022
🎨 A Color picker component. Built from the bottom to work with Vue.js.

Verte A Complete Vue.js Color Picker Component Features Multiple Color Models support: RGB, HSL, and HEX. SSR Friendly. Small file size, only 7kb gzip

Baianat 159 Dec 26, 2022
🎨 Lightweight color picker for Vue 3

?? Lightweight color picker for Vue 3

Anish George 141 Jan 2, 2023
Color Picker app, created by tauri.

Color Picker 取色器 ✨ 特性 一键取色并复制到剪贴板 保留历史取色记录 自定义颜色值类型(如:HEX, RGB 等) 自定义取色快捷键(默认:F2) 颜色值去重 历史记录:左键单击显示颜色值,左键双击复制颜色值到剪贴板,右键单击删除颜色 可隐藏界面取色 软件安装包小,占用内存少 ??

Hunlongyu 27 Sep 30, 2022
Color picker chrome-style only

one-colorpicker A Chrome-style ColorPicker Install $ npm install one-colorpicker Quick Start import {ColorPicker, ColorPanel} from 'one-colorpicker'

null 13 Sep 20, 2022
Accessible color picker component for Vue.js

vue-accessible-color-picker An accessible Vue.js color picker component. Links: demo npmjs.com/package/vue-accessible-color-picker on BundlePhobia git

Philipp Rudloff 69 Dec 28, 2022
A Nice Color Gradient Picker with Vue

Vue Color Gradient Picker Table of Contents Installation Examples Demos Installation To install, you can use npm or yarn: $ npm install vue-color-grad

Arthur Hayrapetyan 42 Dec 14, 2022