Events#
| Type | Description | |
|---|---|---|
onChange | ({ checked: boolean; value: string | number; event: React.SyntheticEvent<HTMLInputElement | HTMLButtonElement> }) => void | (optional) Called once when the user changes the selection. Returns { checked, value, event }. For single selection, use Chip.Group onChange to receive the selected value. |
Chip.Group events#
| Type | Description | |
|---|---|---|
onChange | ({ value: string | number; values: Array<string | number>; checked: boolean; event: React.SyntheticEvent<HTMLInputElement | HTMLButtonElement> }) => void | (optional) Called once when the user changes the selection. Returns { value, values, checked, event }. value identifies the changed chip; values contains all selected values. In single selection mode, checked is always true. |