react-input-colorpicker

1.0.13 • Public • Published

react-colorpicker

react-colorpicker with input box using rc-color-picker and colr.

Demo

https://homfen.github.io/react-colorpicker

Installation

npm install react-input-colorpicker --save

Change color format

Click the input with the Shift key.

Example Usage

import React from 'react';
import ReactDOM from 'react-dom';
import ColorPicker from 'react-input-colorpicker';
 
function changeHandler(colors) {
    console.log(colors);
}
 
ReactDOM.render(
    <ColorPicker
        label='Color: '
        color={'#36c'}
        onChange={changeHandler}
        mode='RGB'
    />,
    document.getElementById('colorPicker')
);

Snapshots

hex

rgba

Readme

Keywords

Package Sidebar

Install

npm i react-input-colorpicker

Weekly Downloads

149

Version

1.0.13

License

MIT

Last publish

Collaborators

  • homfen