ComponentsColor Picker

ColorPicker

A color picker component which allows the user to select a color from a list of pre-defined colors or freely select one color via the Hue and Saturation. It receives a color string in HEX format and outputs an HEX formatted color.

GitHub LogoSource Code

Region customization

You can configure the following Color Picker regions:

  • The recommended colors region, via the recommendedColors array and recommendedColorsPosition;
  • The custom colors picker visibility, via showCustomColors;
  • The saved colors region, via the showSavedColors and savedColorsValue or defaultSavedColorsValue (uncontrolled).

Controlled

The value of the Color Picker can be controlled via the value/onChange props. The value can also be read from onChangeComplete, for a throttled value.