Socket
Socket
Sign inDemoInstall

vue-color-picker-wheel

Package Overview
Dependencies
0
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-color-picker-wheel

A Vue color picker component based on the Farbtastic jQuery Color Picker plug-in


Version published
Weekly downloads
701
decreased by-6.28%
Maintainers
3
Install size
103 kB
Created
Weekly downloads
 

Readme

Source

Vue Color Picker Wheel

Example

Version Downloads License

A Vue color picker component based on the Farbtastic jQuery Color Picker plug-in.

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

Keywords

FAQs

Last updated on 13 Feb 2019

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