# Button Group > Buttons joined into one control, with only the outer corners rounded. Source: https://native.shellui.dev/docs/components/form/button-group ## Installation ```bash shellui-native add button-group ``` **Platforms:** MAUI · Avalonia. Also installs `button`. ## Usage ### Basic **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=button-group-basic) Each button keeps its own `Clicked`. Neighbouring borders overlap, so `Outline` buttons share one line between them. ### Vertical **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=button-group-vertical) Stacked buttons share the widest one's width. ### Updating an older project `ButtonGroup` needs the `Button` that ships with it. If `button` is already in your project from an older CLI version, update it first: ```bash shellui-native update button ``` `update` rewrites `Button.cs`, so reapply any edits you made to it. ## MAUI and Avalonia On Avalonia the buttons are collected in `Items`. ## API XAML children go to `Items`. | Property | Type | Default | Description | |---|---|---|---| | `Orientation` | `StackOrientation` (MAUI) · `Orientation` (Avalonia) | `Horizontal` | `Horizontal` or `Vertical`. |