color-picker ui component for react
npm install rc-color-pickerReact Color Picker




| !Chrome | !Edge | !Firefox | !IE | !Opera | !Safari |
| --- | --- | --- | --- | --- | --- |
| Chrome 31.0+ ✔ | Edge 12.0+ ✔ | Firefox 31.0+ ✔ | IE 10+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |

```
npm install
npm start
online example: http://react-component.github.io/color-picker/
* support color mode RGB HSB HSL

`js`
var ColorPicker = require('rc-color-picker');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(
| name | type | default | description |
|:---------------------|:--------------------------------------------------------------------------|:------------------------------------------------------|:------------------------------------------------------------|
| align | Object: alignConfig of dom-align | | popup 's align config |
| alpha | Number | 100 | opacity of the color |
| animation | String | | index.css support 'slide-up' |
| children | Node | | additional trigger appended to picker |#ff0000
| className | String | '' | Aditional class to be added to component |
| color | String | | color board current background color |100
| defaultAlpha | Number | | opacity of the color |#ff0000
| defaultColor | String | | color board current background color |true
| enableAlpha | Boolean | | enable alpha controls |function(){return document.body;}
| getCalendarContainer | Function():Element | | dom node where picker to be rendered into |RGB
| mode | String | | color mode, support mode 'RGB', 'HSB' or 'HSL' |topLeft
| onChange | Function | noop | when select color |
| onClose | Function | noop | when color picker popup close |
| onOpen | Function | noop | when color picker popup open |
| placement | String | | one of ['topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
| transitionName | String | | css class for animation |
| name | type | default | description |
|:-------------|:---------|:----------|:-----------------------------------------------|
| alpha | Number | 100 | opacity of the color |''
| className | String | | Aditional class to be added to component |#ff0000
| color | String | | color board current background color |100
| defaultAlpha | Number | | opacity of the color |#ff0000
| defaultColor | String | | color board current background color |true
| enableAlpha | Boolean | | enable alpha controls |RGB
| mode | String | | color mode, support mode 'RGB', 'HSB' or 'HSL' |{}` | root node CSS style |
| onBlur | Function | | when picker loose focus |
| onChange | Function | | when select color trigger |
| onFocus | Function | | when picker focus trigger |
| style | Object |
rc-color-picker is released under the MIT license.