Color Picker

Buttons

A comprehensive color picker with HSL sliders, preset swatches, hex/RGB/HSL format toggling, and copy-to-clipboard functionality. Features animated popover and real-time color preview.

Loading preview...
Customize
Label
Disabled
Show Alpha

Props

PropTypeDefaultDescription
valuestring'#E84E2D'The selected color value in hex format (e.g., '#ff0000').
onChange(color: string) => voidundefinedCallback fired when the color is changed.
labelstringundefinedLabel text displayed above the color picker button.
disabledbooleanfalseDisables the color picker.
showAlphabooleanfalseShows the alpha/opacity slider in the picker.
presetsstring[]DEFAULT_PRESETSArray of preset hex colors to display as quick selects.
classNamestring''Additional CSS classes.