Color Area

A color area lets users tweak two channels of an RGB, HSL, or HSB color against a 2D gradient backdrop.

Basic

A color area allows users to select a color interactively.

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 Area's decked out with several components to make it bangin'.

Slider

Swipe left or right to adjust values, like sliding the volume on your stereo, perfect for gradual control.

Field

Field's a core piece every other component uses. It flexes reusable styles, showing up in inputs, labels, descriptions, and more.

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.

Channel

Specify the color channels for the horizontal and vertical axes using the xChannel and yChannel properties.

Space

Define the color space for operation, which must align with the xChannel and yChannel. The default is set based on the color or defaultColor value. Valid types include rgb, hsl, and hsb.

Controlled

Control the color area by specifying channels for the horizontal (xChannel) and vertical (yChannel) axes.

hex#FF0000hexa#FF0000FFrgbrgb(255, 0, 0)rgbargba(255, 0, 0, 1)hslhsl(0, 100%, 50%)hslahsla(0, 100%, 50%, 1)hsbhsb(0, 100%, 100%)hsbahsba(0, 100%, 100%, 1)

Disabled

Disable the color area component. While it's possible to disable the thumb component, it's generally not advisable.