Color Picker
A versatile UI component that provides multiple ways to choose colors, including sliders, swatches, and manual input.
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 install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.
The Color Picker comes packed with several components to enhance functionality and provide a seamless experience.
Manual Installation
Make sure you also install the composed components and the required packages for the component to function properly.
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.
Eye Dropper
Add an eye dropper button to the color picker to allow users to select a color from the screen.
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.