Naughty Program Manipulator

react-colorpicker

0.0.5 • Public • Published

React-ColorPicker

A simple colorpicker written using React.

Installation

npm install --save react-colorpicker

Usage

var React = require('react');
var ColorPicker = require('react-colorpicker');
 
var colorpicker = new ColorPicker({
    color: '#c0ffee',
    onChange: function (color) {
        // fired whenever user changes color
        // color is a Color instance
        // https://github.com/harthur/color
 
        console.log(color.hexString());
    }
});
 
React.renderComponent(colorpicker, document.body);

install

npm i react-colorpicker

Downloadsweekly downloads

38

version

0.0.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability