HQ UI

Color Picker

A Color Picker keeps color values in sync across React Aria color components. It makes building color pickers with custom layouts a breeze through composition.

Installation

In the terminal, run the following command to begin:
npx hq-kit add color-picker

Basic

Enable Format Selection

Enable users to select the format of the color value (e.g., RGB, HSL).

Combination

Combine both swatch and selection format options in the color picker.

Label

Add a label to the color picker for better accessibility and user guidance.

Dynamic Label

Description

Snag a color for the app theme

Controlled

{"hue":216,"saturation":98,"lightness":52,"alpha":1}