Description
react-color-picker is a color picker component for React, described by its author as a resurrection of the older react-color-picker package. It is built from two spectrum parts that can be used together or alone: a hue spectrum for choosing the hue, and a saturation spectrum for choosing saturation and brightness. You set the size of each part with saturationWidth, saturationHeight, hueWidth and hueHeight, and any other prop such as className or style can be passed to the picker. The ColorPicker element always gets a color-picker CSS class. Both the full picker and each spectrum accept onDrag, which fires while the user drags, and onChange, which fires after the mouse is released and the colour is selected. The README says the index.css stylesheet must be included, and it shows install commands for npm and yarn. The package is released under the MIT license.…
Highlights
- Hue and saturation spectrum components
- Use the full picker or each spectrum alone
- onDrag and onChange callbacks
- Fixed sizes and any extra props
- MIT license
Ratings & Reviews
No ratings yet
Be the first to rate @vtaits/react-color-picker.
People also visit

@alisowski/color-picker
React color pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
@vtaits/react-color-picker FAQ
Is react-color-picker free?
Yes. The README lists the license as MIT and the code is public on GitHub.
How do I install it?
Install the package with npm or yarn and include the index.css stylesheet. The README stresses that the styles must be included.
Can I use only one part of the picker?
Yes. The README shows that you can use just the hue spectrum or just the saturation spectrum.
What is the difference between onDrag and onChange?
onDrag fires during the drag, while onChange fires after the mouse is released and the colour has been selected.
How do I set the size?
Give the picker fixed values for saturationWidth, saturationHeight, hueWidth and hueHeight. The README says hueHeight defaults to saturationHeight.
What are the best @vtaits/react-color-picker alternatives?
Popular alternatives to @vtaits/react-color-picker include react-color-palette, @alisowski/color-picker and react-colorful. See all @vtaits/react-color-picker alternatives

















