Skip to components
DEVELOPER REFERENCE · v4.0.0

ColorPalette API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

ColorPalette8 props1 callbacks0 methods

Props8

ColorPalette props
NameTypeDescription
valueRequired
ColorPaletteValueInspect type
Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.
optionsOptional
readonly ColorPaletteOption[] | undefinedInspect type
Available choices or control configuration, according to the declared type; expand it to inspect each field.
ariaLabelRequiredstringAccessible name announced by assistive technology.
defaultLabelRequiredstringLabel for the default or unset color choice.
colorAriaLabelRequired
(option: ColorPaletteOption) => stringInspect type
Returns the accessible label for a palette option.
disabledOptionalboolean | undefinedDisables user interaction with the control.
includeDefaultOptionalboolean | undefinedIncludes a default/unset choice in the color palette.
defaultDisabledOptionalboolean | undefinedDisables the default/unset palette choice.

Events and callbacks1

ColorPalette events and callbacks
NameTypeDescription
onChangeRequired
(value: ColorPaletteValue) => voidInspect type
Receives the new value when the user changes the control. Update the corresponding value prop for controlled use.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.