Colors

Color Area

An interactive color selection tool that enables users to pick a color by adjusting both hue and saturation within a 2D space.

Basic

A color area allows users to select a color interactively.

Composed Components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

The Color Area comes packed with several components to enhance functionality and provide a seamless experience.

A draggable indicator within color selection tools, allowing users to fine-tune their chosen color.

Installation

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

Manual Installation

Make sure you also install the composed components and the required packages for the component to function properly.

Anatomy

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.

Color Area with Slider

You can use the color area with the slider to control the color.

50°