aria-label | string | | required when icon is used with no supporting text |
buttonId | string | | Optional id for the button within the toggle group item |
className | string | | Additional classes added to the toggle group item |
icon | React.ReactNode | | Icon rendered inside the toggle group item |
iconPosition | 'start' | 'end' | 'start' | Sets position of the icon when text is also passed in |
isDisabled | boolean | false | Flag indicating if the toggle group item is disabled |
isSelected | boolean | false | Flag indicating if the toggle group item is selected |
onChange | (event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent, selected: boolean) => void | () => {} | A callback for when the toggle group item selection changes. |
text | React.ReactNode | | Text rendered inside the toggle group item |