ChoiceChips API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
ChoiceChips10 props1 callbacks0 methods
Props10
| Name | Type | Description |
|---|---|---|
valueOptional |
| Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
optionsRequired |
| Available choices or control configuration, according to the declared type; expand it to inspect each field. |
ariaLabelRequired | string | Accessible name announced by assistive technology. |
appearanceOptional | "soft" | "outlined" | undefined | Selects a soft-filled or outlined chip presentation. |
scrollableOptional | boolean | undefined | Keep choices on one scrollable row, with hidden scrollbars and soft edge fades. |
sizeOptional | "small" | "medium" | undefined | Visual size of this component; numeric icon/avatar sizes are in pixels, while controls use the declared named sizes. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
itemClassNameOptional | string | undefined | Additional CSS classes for the item part of the component. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
testIdOptional | string | undefined | Stable data attribute for locating the control in automated tests. |
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.