react-input-colorpicker

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-input-colorpicker
401.0.136 years ago6 years agoMinified + gzip package size for react-input-colorpicker in KB

Readme

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