ToggleGroup
Use the ToggleGroup component to select a single option from a short list of options for example toggling text alignment.
Component API
Props of ToggleGroup component.
| Prop | Default | Description |
options | — | ToggleGroupOption[]Options to select, see ToggleGroupOption below |
onChange | — | (value: T = string): void;Callback when the value changes. Type of value is inherited from the options - string is default |
Props of ToggleGroupOption component.
| Prop | Default | Description |
label | — | string | React.ReactNodeThe title of the option |
value | — | stringThe value of the option |
disabled | — | booleanIs option disabled? |
Last updated on