Color Picker

The Color Picker component allows a user to select any color either from a manual entry or from an interactive gradient. The Color Picker component supports manual inputs of RGB, HSL, and hexadecimal format.

Inline

Passing the inline prop will render the Color Picker inline with its label, if provided. By default, an inline Color Picker will render its elements with a space-between justification using the Flex component.

Swatch only

The Color Picker component, by default, will render a color swatch and a text representation of the selected color. If only the color swatch is necessary, pass the swatchOnly prop.

Required

If the Color Picker is required, pass the required prop. This will prevent any Form submission until the required color is chosen.

Disabled

Disable a Color Picker in order to prevent a user from selecting any information while some task is being completed, or to restrict a user's access.

Read only

If you want to render a color that has already been selected for viewing purposes only, use the readOnly prop. The user will not be able to make any new color selections if it is read only.