Skip to main content

Color Picker

Pick a color by hue, shade or hex, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
labelstring-Text above the picker.
Text above the picker.
valuestring-
defaultValuestring-
onValueChange(value: string) => void-Called with the new hex whenever the color changes.
Called with the new hex whenever the color changes.
swatchesstring[]-
opacitybooleanfalse
variantinline | popoverinline
shapenone | rounded | pillrounded
disabledbooleanfalseBlocks every part of the picker & dims it.
Blocks every part of the picker & dims it.
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-