Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

react-colorpicker

0.0.7 • Public • Published

React-ColorPicker

A simple colorpicker written using React.

Uses the Colr library: https://github.com/stayradiated/colr

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
 
        console.log(color.hexString());
    }
});
 
React.renderComponent(colorpicker, document.body);