# Toggle Group > A row of toggles where one, or several, can be pressed. Source: https://native.shellui.dev/docs/components/form/toggle-group ## Installation ```bash shellui-native add toggle-group ``` **Platforms:** MAUI · Avalonia. Also installs `icon`, `element-extensions`. ## Usage ### Single **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=toggle-group-single) ### Multiple **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=toggle-group-multiple) ## MAUI and Avalonia On Avalonia the items are also tab stops, pressed with Enter or Space. ## API ### ToggleGroup XAML children go to `Items`. | Property | Type | Default | Description | |---|---|---|---| | `Multiple` | `bool` | `false` | Allows several items to be pressed at once. | | `Value` | `string` | — | Pressed item with `Multiple="False"`. Two-way bindable. | | `Values` | `IList` (MAUI) · `IList?` (Avalonia) | `null` | The pressed items' Values in Multiple mode. | | `Variant` | `ToggleGroupVariant` | `Default` | Visual style. One of `Default`, `Outline`. | | Event | Arguments | Description | |---|---|---| | `ValueChanged` | `string?` | User input only: setting Value or Values from code or a binding doesn't raise them. | | `ValuesChanged` | `IReadOnlyList` | The selection changed. | | Method | Description | |---|---| | `IsPressed(string value)` | Whether it's pressed. Two-way bindable. | ### ToggleGroupItem | Property | Type | Default | Description | |---|---|---|---| | `Value` | `string` | — | Value this item stands for. | | `Text` | `string` | — | Text shown by the component. | | `Icon` | `IconName` | `None` | Lucide icon from `IconName`; `None` for no icon. |