Color Picker

pro

Color picker with hex/rgba/hsla output formats and preset swatches.

Overview

The Color Picker uses react-colorful to provide a full-featured color selection UI. Supports hex, RGBA, and HSLA output formats, preset color swatches, and a configurable popover position.

Properties

PropertyTypeDefaultDescription
nameString"color"Field name used in form data.
labelString"Color"Label displayed above the picker.
defaultColorColor"#6052FF"Initial color value.
colorFormatEnum"hex"Output format: hex, rgba, or hsla.
popoverPositionEnum"bottom-left"Where the picker popup appears relative to the trigger.
presetColorsArray--Preset color swatches for quick selection.
showInputBooleantrueShow hex/rgba/hsla text value in trigger.
requiredBooleanfalseWhether a color must be selected.

Features

  • Full color picker powered by react-colorful
  • 3 output formats: hex, rgba, hsla
  • Preset color swatches for quick selection
  • 4 popover positions
  • Per-channel editing for RGBA/HSLA
  • Hidden <input> for native form submission

Tips

Use preset colors to offer brand-approved color options while still allowing custom selection.
Choose the output format that matches your backend needs (hex is most common).

Related components