Components
Chat
Chat InputColors
Color AreaColor FieldColor PickerColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrag and drop
Drop ZoneForms
CheckboxCheckbox GroupFieldFormInput OTPInput PhoneNumber FieldRadio GroupSearch FieldSelection BoxTag FieldText FieldTextareaTypography
TypographyUtilities
Visually HiddenColor 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.
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.
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.