Segmented button group
The guideline content on this page is synced with Figma and can be used as a source of truth.
Open in Figma
Segmented button group displays multiple related actions stacked or in a horizontal row to help with arrangement and spacing. The buttons are displayed as a horizontal group of buttons, where only one option can be selected at a time.
Anatomy
- Selected content tab
- Content tab
- Label text
- Container
With icon
An icon should be used in a segmented control when it provides quick, universal understanding of the option and can replace or supplement text for clarity and space efficiency.
States
This component has the following states:
- Default
- Hover
- Focus
- Selected
- Disabled
States
Usage
Information
When a user clicks an option, it becomes active, and the previously selected option becomes inactive. Segmented buttons are visually connected, typically contained within a single border or container.
The primary function is to enable users to switch between different views of the same content, sort data, or choose a single setting from a limited set of options.
The number of segments should be small, typically 2 to 5, to prevent the component from becoming too wide or overwhelming for the user.
The effect of selecting a button should be immediate and obvious, with no need for a “Submit” or “Apply” button.
Badge
You can display a number next to the text in the segmented button. This feature can be toggled on or off in the settings menu located in the top right corner of Figma.
Placement
Segmented button groups are positioned within the sub-header region, situated between the page title and the primary data container.
This placement establishes a definitive visual hierarchy, designating the component as a high-level view controller that governs the scope of the underlying content.
Accessibility
Keyboard interaction
All components should be reachable via TAB and SHIFT+TAB keys.
Best practices
Short text

Keep labels short and concise. If a label is too long for a segmented control, use a different component like a dropdown or quick filter.

Don’t use long labels.
Consistent size

Keep button widths consistent across all segments.

Don’t change the width of individual buttons.
Specs
Developer reference
The following sections describe supported functionality that is not part of the Figma design specification.
Design
Default
Add .btn-group-tabs class to the .btn-group to create segmented controls. Use .active on the selected button and aria-selected="true" for accessibility.
Small size
Add .btn-group-tabs-sm class to the wrapper for a smaller variant.
Disabled
Add the disabled attribute to individual buttons to disable them.
Single disabled button
All disabled
Legacy button groups
Button groups
Deprecated in v2.3
The default .btn-group without .btn-group-tabs is deprecated and will be removed in v3.0. Use .btn-group.btn-group-tabs instead.
Default
Primary
With dropdowns
Deprecated in v2.3
Dropdowns inside button groups are deprecated and will be removed in v3.0. Use a standalone dropdown component instead.
Small
Regular
Large
Vertical button groups
Deprecated in v2.3
Vertical button groups are deprecated and will be removed in v3.0. Use segmented button groups (.btn-group.btn-group-tabs) for horizontal selection instead.