Skip to content

Color picker

Selects a color with a color area, hue slider, and hex field in a popover.

color-picker-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Controlled value

Selected: #4169BD
color-picker-controlled-demo.tsx

API reference

vip/ui adds or changes the props below. For all other props, see React Aria ColorPicker (opens in a new tab).

label: string = "Choose color"
Text on the trigger. The popover uses it in its accessible name.
children: ReactNode
Replaces the default trigger and popover. Without it, ColorPicker shows its built-in layout.