0.1.6 • Published 4 years ago

react-color-picker-wheel v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

react-color-picker-wheel

npm version

Color picker component for React.js using color wheel

demo

Demo can be found here: https://ahmethalac.github.io/react-color-picker-wheel/

Installation

npm install react-color-picker-wheel
yarn add react-color-picker-wheel

Usage

import ColorPicker from 'react-color-picker-wheel';
// ...
return <ColorPicker
    initialColor="#FF0000"
    onChange={(color => console.log(color))}
    //Console output => { hex: "#FF0000", rgb : { r: 255, g: 0, b: 0 } , hsl : { h: 0, s: 100, l: 50 }
    size={300}
/>;

Properties

NameTypeDefault ValueDescription
initialColorHex"#FF0000"Color to render onto color wheel. It can be hex(#ffffff) or rgb object ({r:0, g:0, b:0})
onChangefunc()=>{}Function which will be called when color change occurs. Function parameter is a color object
sizenumber100Size of the container in pixels (Container is a square)
0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago