--- id: Toggle group section: components cssPrefix: pf-v6-c-toggle-group ---## Examples ### Default ```html


``` ### With icon ```html


``` ### Icon-and-text ```html

``` ### Compact ```html


``` ### Full width toggle To make toggle group items fill the available space, use `.pf-m-fill`. In the following example, the toggle group items fill the width of the parent as the window size changes. ```html


``` ## Documentation ### Accessibility | Attribute | Applied to | Outcome | | -- | -- | -- | | `aria-label="[button label text]"` | `.pf-v6-c-toggle-group__button` | Provides an accessible name for the button when an icon is used instead of text. **Required when icon is used with no supporting text** | | `disabled` | `.pf-v6-c-toggle-group__button` | When a button element is used, indicates that it is unavailable and removes it from keyboard focus. **Required when button is disabled** | ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v6-c-toggle-group` | `
` | Initiates the toggle group. **Required** | | `.pf-v6-c-toggle-group__button` | `