ColorPicker API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
ColorPicker10 props1 callbacks0 methods
Props10
| Name | Type | Description |
|---|---|---|
labelRequired | string | Label content or accessible name for the component, as rendered by this control. |
valueOptional | string | undefined | Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
defaultLabelRequired | string | Label for the default or unset color choice. |
customLabelRequired | string | Label for choosing a custom color. |
customHexLabelOptional | string | undefined | Accessible label for entering a custom hexadecimal color. |
invalidColorOptional | string | undefined | Validation message shown when the entered color is invalid. |
colorLabelsRequired |
| Maps color values to localized display/accessibility labels. |
optionalOptional | boolean | undefined | Allows the color value to be cleared or left unset. |
allowHexInputOptional | boolean | undefined | Set false for a selection-only palette and native color chooser. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
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.