Skip to components
DEVELOPER REFERENCE · v4.0.0

ChoiceChip API

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

ChoiceChip6 props2 callbacks0 methods

Props6

ChoiceChip props
NameTypeDescription
childrenRequired
ComponentChildrenInspect type
Content rendered inside the component. Supply nodes from the framework adapter you are using.
colorOptionalstring | undefinedCSS color used for this item or its visual accent.
selectedOptionalboolean | undefinedSelected value or selected-state flag; the declared type identifies which representation the control uses.
infoOptional
ComponentChildrenInspect type
Additional informational content displayed with the choice chip.
removeLabelOptionalstring | undefinedAccessible text or formatter for the remove-item action.
removeClassNameOptionalstring | undefinedAdditional CSS classes for the remove part of the component.

Events and callbacks2

ChoiceChip events and callbacks
NameTypeDescription
onSelectOptional
h.JSX.MouseEventHandler<HTMLButtonElement> | undefinedInspect type
Called when the user selects an item. The signature identifies the selected value and any additional context.
onRemoveOptional
(() => void) | undefinedInspect type
Requests removal of the indicated item; the application owns updating its data.

Methods0

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

Inherited HTML props and events327