Skip to Content
EnComponentsColor picker

ColorPicker

The ColorPicker component allows users to select a color.

Playground

Props

Examples

Basic

Fullwidth

Pre-selected Color

Props

PropTypeDefaultDescription
colorstring-The selected color value.
defaultColorstring-The default color value.
fullwidthbooleanfalseMakes the picker take up the full width.
labelstring-The label text displayed next to the picker.
onChange(event: ChangeEvent<HTMLInputElement>) => void-Callback function when the color changes.
requiredbooleanfalseMarks the input as required.

See also

Last updated on