cf-component-color-picker
A color picker wrapper for react-color
Installation
Installation with yarn is recommended
$ yarn add cf-component-color-picker
Usage
import React from 'react';import ColorPicker ColorPickerInput from 'cf-component-color-picker';import createComponent from 'cf-style-container'; const ConstrainingDiv = ;ConstrainingDiv; Component { ; thisstate = color: 'green' ; thishandleChange = thishandleChange; } { this; } { return <div> <ColorPicker = /> <br /> <ConstrainingDiv> <ColorPickerInput = = /> </ConstrainingDiv> </div> ; } ;