Description
react-color-palette is a lightweight color picker component for React. It exports a ColorPicker component that bundles a saturation area, a hue slider, an alpha slider and input fields, so you can add a full picker with one element. For a custom layout you can use the Saturation, Hue and Alpha components on their own. The picker keeps its color in a useColor hook, which accepts an initial color in formats such as hsl(), hwb() and rgb(), and it exposes the color as HEX, RGB or HSV values, with alpha. You can hide the alpha slider, hide some or all of the input fields, set the saturation height, and disable interaction. Callbacks fire on every change and when an interaction is complete, so you can save only the final value. The README includes examples for an rgb() initial value, a HEX-only input, a custom layout and the completion callback. The project is installed with yarn or npm and is released under the MIT license.…
Highlights
- Full ColorPicker component
- Separate saturation, hue and alpha parts
- useColor hook with several color formats
- HEX, RGB and HSV values
- Change and change-complete callbacks
Ratings & Reviews
No ratings yet
Be the first to rate react-color-palette.
People also visit

@alisowski/color-picker
React color pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
react-color-palette FAQ
What is react-color-palette?
A lightweight color picker component for React.
How do I install it?
With yarn or npm, as the installation section shows.
Can I change the layout?
Yes. The Saturation, Hue and Alpha components can be used separately for a custom layout.
Can I hide the inputs?
Yes. hideInput can hide all inputs, or specific fields listed in an array.
When does the callback fire?
onChange fires as the color changes, and onChangeComplete fires when the interaction is finished.
What license is it under?
The MIT license, according to the README.
What are the best react-color-palette alternatives?
Popular alternatives to react-color-palette include @vtaits/react-color-picker, react-colorful and react-gcolor-picker. See all react-color-palette alternatives

















