Grouped button

The Grouped Button component combines related buttons in a unified layout, emphasizing their relationship and collective purpose.

Overview

  • Release version
    Australia
  • Available sinceAustralia

Anatomy

Anatomy image for grouped button includes icon only and label only examples.
  1. Group label (optional): Text that describes the group of button options; if you don't include this label, include text above the button group that describes the options
  2. Icon (optional): Visual element next to the label that emphasizes the action
  3. Label: Describes the action of the button; label is optional if there is an icon
  4. Container: Contains all button segments

Usage

Use grouped button to present related buttons in a single row. Grouped button supports single and multi select modes, enabling users to select one or multiple options from the group.

Variants

Learn about the variants of grouped button.

Colors

Grouped button has 6 different color variants: primary, secondary (default), tertiary, primary selection, secondary selection, tertiary selection.

Variant Default style
Primary now-grouped-button
Secondary (Default) now-grouped-button
Tertiary now-grouped-button
Primary selection now-grouped-button
Secondary selection now-grouped-button
Tertiary selection now-grouped-button

Sizes

Grouped button has the following sizes: sm, md, lg. The size you choose depends on your use case.

Small

iconic button sizing small

Medium

iconic button sizing medium

Note: medium is the default size.

Large

iconic button sizing large

Configurations

Learn how to customize grouped button by configuring the available properties.

Selection

You can choose a single or multi selection option for your grouped button.

Single select

Enables users to select one button from the group at a time. Selecting a new button will deselect the previously selected one.

iconic button sizing medium

Multi select

Enables users to select multiple buttons from the group simultaneously. Each selected button remains selected until it is deselected by the user.

iconic button sizing large

Width

Configure the minimum button width or assign a fixed width.

Minimum width

Sets a custom minimum width for each button. When this property is empty, the component applies a default minimum width.

iconic button sizing medium

Fixed width

When true, all buttons share the same width based on the longest button label. By default, this property is set to true.

iconic button sizing large

Labels

You can configure the button group label, label position, or choose to hide button labels.

Group label

Sets the label text for the button group.

iconic button sizing medium

Group label position

Sets the position of the label relative to the button group. Options include top (default) and start.

iconic button sizing medium

Grouped button with group label positioned at the top (left) and at the start (right)

Hide label

When this property is set to true, hides the label on buttons that have both a label and an icon.

iconic button sizing medium

Accessibility

You can configure the ARIA properties for your grouped button.

Design recommendations

Learn how to apply grouped button in your design.

For more design recommendations, view the usage guidelines for the button type you are using.

See usage guidance for bare button

See usage guidance for iconic button

See usage guidance for split button

See usage guidance for stateful button

accordion with recommended two nested levels
Do

Use an appropriate minimum width for your use case that is still legible.

accordion with too many levels
Don’t

Avoid using a minimum width that makes the button labels difficult to read.

Behavior

Learn how grouped button behaves when the display changes or a user interacts with the component.

States

Grouped button has the following states: default, hover, active, focus, and disabled.

Single select states

State Example
Default now-grouped-button
Hover now-grouped-button
Active now-grouped-button
Focus now-grouped-button
Disabled now-grouped-button

Multi-select states

State Example
Default now-grouped-button
Hover now-grouped-button
Active now-grouped-button
Focus now-grouped-button
Disabled now-grouped-button

Responsive behaviors

Learn how grouped button responds to changes in a container or display.

Reflow

Buttons will wrap to a new row when:

  • The container width is smaller than the combined width of all buttons at their minimum width
  • The buttons don't fit in a single row while respecting their minimum width constraints
grouped button showing reflow behavior

As container size decreases, each button width is reduced and truncates until it reaches the min width.

grouped button with the buttons wrapping

Once buttons reach its minimum width or can no longer all fit in one row, the buttons start to wrap.

Tooltip

When text in the grouped button exceeds the width of the container or content area, text truncates with an ellipsis, and a tooltip shows the full content on hover.

Truncated text tooltip

If the user has not configured a custom tooltip, truncated text appears in a tooltip on hover.

grouped button without a custom tooltip, showing truncated text on hover
Custom tooltip

If users configure a custom tooltip, custom tooltip content appears on hover, even if there’s truncated text.
Note: If a button is disabled, a tooltip doesn’t display, even if there’s tooltip content assigned.

grouped button showing a custom tooltip appearing on hover

Interactions

Grouped button interactions depend on the selection mode. In single select, selecting a button deselects the previously selected one. In multi select, buttons are selected and deselected independently. When a user selects a button, the component displays a brief ripple animation to confirm the interaction.

Usability

Grouped button complies with all internationalization and accessibility requirements.

Internationalization

When this component is used in a platform configured for a right-to-left (RTL) language, the position of the icon and direction of the label will directionally change according to the language. Grouped button only supports one icon; right-to-left support will only impact directional icons.

grouped button appearing in a right to left language

Accessibility

Learn how to access the actionable elements of grouped button through keyboard interactions and screen readers.

Keyboard interactions

Users can interact with grouped button using the keyboard.

Single select grouped button
  • Tab: If no buttons are selected, creates focus on the first button segment in the group; if buttons are selected, auto-focuses to the first selected button
  • Up or left arrow: Moves focus to and selects the previous button segment; focus may wrap from the first button to the last button
  • Down or right arrow: Moves focus to and selects the previous button segment; focus may wrap from the last button to the first button
  • Space/Enter: Selects the button that currently has focus; if no button is selected, selects the first button in the group
Multi-select grouped button
  • Tab: Moves focus to the next button in the group
  • Space: Selects or deselects the focused button