Need private packages and team management tools?Check out npm Teams »

react-colorpicker

0.0.2 • 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 tinycolor instance
        console.log(color.toHex());
    }
});
 
React.renderComponent(colorpicker, document.body);