Skip to main content

Color Picker API

Properties
NameTypeDefaultDescription
valuestringGets or sets the selected color. Must be a valid CSS hex color.
keystringStorage key for sharing recently used colors between pickers. Omit to disable recent-color storage. In Vue, use :key.prop="'somekey'" because key is reserved.
disabledbooleanfalseDisables the picker.
readonlybooleanfalseMakes the picker read-only.
inlinebooleanfalseRenders the color picker as a standalone (always-visible) component.
Events
EventDescriptionReturns
changeFires when the selected color changes. Value is a hex color code with a leading hash, e.g. #bada55.{ detail: { value: string } }