0.4.3 • Published 6 years ago

vue-color-picker-wheel v0.4.3

Weekly downloads
728
License
MIT
Repository
github
Last release
6 years ago

Vue Color Picker Wheel

Demo

Basic

Basic CodePen demo

Installation

npm install --save vue-color-picker-wheel

Usage

ES6 modules

<template>
    <div id="app">
        <color-picker v-model="color"></color-picker>
        <p>
            Color:
            <input v-model="color" type="text">
        </p>
    </div>
</template>
<script>
    import ColorPicker from 'vue-color-picker-wheel';

    export default {
        name: 'App',
        components: {
            ColorPicker
        },
        created() {
        },
        data() {
            return {
                color: '#ffffff'
            };
        },
    };
</script>

CommonJS

const ColorPicker = require('vue-color-picker-wheel');

In a script tag, this loads the component using the global Vue instance.

<script src="https://unpkg.com/vue-color-picker-wheel"></script>

Properties

PropertyDescriptionTypeDefaultExample
widthThe width of the color pickerNumber300:width="400"
heightThe height of the color pickerNumber300:height="400"
disabledWhether or not the color picker should be disabledBooleanfalse:disabled="false"
v-modelv-model to create two-way data binding for colorString (hex color code)nonev-model="color"
startColorThe color that is selected when opening the colorpickerString (hex color code)nonestartColor="#ffffff"

Events

EventDescriptionEvent parameters
color-changeIs fired after the selected color has changedcolor: String (hex color code)

Contributing

Checkout GitHub issues for any issues we need some help with.

# Serve with hot reload (default at localhost:8080)
vue serve --open src/color-picker.vue

# Build all variants
npm run build

Changelog

Changelog on Github

License

MIT

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago