Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 1.05 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.05 KB

react-input-color

React input color component with hsv color picker

The color picker is inspired by the sketch color picker

screenshot

Installation

npm install react-input-color --save

Demo

https://wangzuo.github.io/react-input-color

Usage

Check app.js for a working example.

var InputColor = require('react-input-color');

<InputColor
  value={this.state.color}
  defaultValue="#345678"
  onChange={this.handleChange} // change state.color in handleChange
/>

License

MIT