Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

react-colorpicker

0.0.6 • 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);

install

npm i react-colorpicker

Downloadsweekly downloads

38

version

0.0.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability