Components
Charts
Setting UpArea ChartLine ChartBar ChartPie ChartRadar ChartRadial Bar ChartScatter ChartTooltip ChartColors
Color AreaColor FieldColor PickerColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrag and drop
Drop ZoneForms
CheckboxCheckbox GroupFieldFormInput OTPNumber FieldRadio GroupSearch FieldTag FieldText FieldTextareaUtilities
Visually HiddenColor Picker
A Color Picker keeps color values in sync across React Aria color components. It makes building color pickers with custom layouts a breeze through composition.
Basic
The basic color picker allows users to select a color.
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 Picker's decked out with several components to make it bangin'.
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
Enable Format Selection
Enable users to select the format of the color value (e.g., RGB, HSL).
Combination
Combine both swatch and selection format options in the color picker.
Label
Add a label to the color picker for better accessibility and user guidance.
Dynamic Label
Dynamically update the label based on the selected color.
Description
Include a description to provide additional information or instructions.
Controlled
Control the selected color with the value
prop to sync it with your application's state.
Disabled
Disable the color picker by setting the isDisabled
prop, making it non-interactive.