ColorPalette API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
ColorPalette8 props1 callbacks0 methods
Props8
| Name | Type | Description |
|---|---|---|
valueRequired |
| Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
optionsOptional |
| Available choices or control configuration, according to the declared type; expand it to inspect each field. |
ariaLabelRequired | string | Accessible name announced by assistive technology. |
defaultLabelRequired | string | Label for the default or unset color choice. |
colorAriaLabelRequired |
| Returns the accessible label for a palette option. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
includeDefaultOptional | boolean | undefined | Includes a default/unset choice in the color palette. |
defaultDisabledOptional | boolean | undefined | Disables the default/unset palette choice. |
Events and callbacks1
| Name | Type | Description |
|---|---|---|
onChangeRequired |
| 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.