🎉Save 15% on all Justd Blocks for a limited time during the launch!
Components

Color Swatch Picker

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

Basic

A color swatch picker allows users to choose a color from a predefined set.

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Composed Components

When you plug this component from the CLI, it autoloads all the composed components. No need to toss 'em in one at a time.

The Color Swatch Picker's decked out with several components to make it bangin'.

A visual lineup of colors, letting you pick with a click, just like choosing your next outfit from your wardrobe.

Manual Installation

Sometimes, using the CLI is the way to go, so make sure you install the necessary dependencies for the components you want to use.

Anatomy

Controlled

The color swatch can be managed in a controlled manner.

hex#0D6EFDhexa#0D6EFDFFrgbrgb(13, 110, 253)rgbargba(13, 110, 253, 1)hslhsl(215.75, 98.36%, 52.16%)hslahsla(215.75, 98.36%, 52.16%, 1)hsbhsb(215.75, 94.86%, 99.22%)hsbahsba(215.75, 94.86%, 99.22%, 1)

Disabled

While you can disable individual picker items, disabling the entire picker is possible but generally not recommended.

hex#0D6EFDhexa#0D6EFDFFrgbrgb(13, 110, 253)rgbargba(13, 110, 253, 1)hslhsl(215.75, 98.36%, 52.16%)hslahsla(215.75, 98.36%, 52.16%, 1)hsbhsb(215.75, 94.86%, 99.22%)hsbahsba(215.75, 94.86%, 99.22%, 1)