Agentic Design System
v3.5.0

Components · Actions · Group Button

Back to Group Button types

Group Button

Owner: Design System Team · Version: v3.5.0

Use for switching between a small set of mutually exclusive options, like a view toggle or a time-range filter - one Group Button component, controlled by properties, not separate buttons glued together.

Properties

Size, corner radius, button count, field label and supporting text are properties of the same component, not separate buttons - change them below to check this group's style and states in the Live Preview.

Size
Corner radius
Button labels
Field label
Supporting text

Live Preview

Both types compared side by side, each in all 6 states - the first segment demonstrates the row's state while the others stay at rest, except Disabled which applies to the whole group. One full matrix is rendered per selected combination of Size and Corner radius, at the chosen button count, with the optional field label and supporting text shown when enabled.

Try it

The comparison matrix above freezes one segment per row to demonstrate each state side by side. This instance is real: click a segment to select it, exactly like a real segmented control.

Allow no selection

When to use

Any small, fixed set of mutually exclusive options where only one can be active at a time.

View toggle Time range Sort order Unit system Alignment

Component Guide

Overview

Group Button is a segmented control for switching between a small, fixed set of mutually exclusive options - one bordered strip of adjoining buttons where exactly one segment is active at a time, unlike Radio's separate circular inputs or Select's collapsed dropdown.

When to Use

  • A view toggle - switching between List and Grid layouts.
  • A time range or sort filter - Day/Week/Month, or a sort-order picker.
  • A short, fixed set of exclusive settings - unit system (Metric/Imperial), text alignment.

When Not to Use

  • More than five or six options - segments get cramped; use Select or Dropdown instead.
  • Options that aren't mutually exclusive - use a Checkbox group so more than one can be active.
  • A single on/off setting - use Switch - Group Button is for choosing among several options, not toggling one.

Best Practices

  • Keep segment labels short (a word or an icon) so they never wrap or truncate.
  • Use it for exactly one active option at a time - it is not a multi-select control.
  • Keep the segment count small enough to fit without horizontal scrolling on narrow screens.

Do and Don't

Do

DayWeekMonth

A short, fixed set of mutually exclusive options, each label a single word, all visible at once.

Don't

Last 24 hoursPrevious calendar week

Sentence-length labels stretch the segments until the control no longer scans as a single row of choices. Use Select once labels get this long.

Accessibility

  • Exposed as a group of real buttons with aria-pressed reflecting each segment's active state.
  • Visible focus ring per segment, independent of the active-state background fill.
  • The active segment is communicated by more than color alone (a filled background, not just a text-color change).

Related Components

Tabs (switches views rather than options), Radio (separate visible inputs), Select (a collapsed single choice), Switch (a single on/off setting), Button (all 8 Button types - see Components · Button - for the standalone action that sits next to a Group Button rather than inside it).