Color Swatch

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

Basic

The basic color swatch simply displays the selected color value.

Installation

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

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.

And next, you can copy the code below and paste it into your dopest component folder.

Swatch Picker

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

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)