Segmented control
A segmented control is a group of two or more segmented control buttons with related content. By applying it, we can immediately switch the view of the linked content.
- In progress
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
- Figma spec (opens in a new tab)
npm install @sbks/ds-elements
Overview
Section titled “Overview”Segment control displays a horizontal set of segmented buttons. The usage of segment control should be clearly defined so that users can easily identify each segmented buttons. Explanation tooltip, help icon, select trigger or any other interactions are not allowed.

Visual documentation
Section titled “Visual documentation”-
Anatomy
-
Composition
-
Variants
Anatomy
Section titled “Anatomy”
-
Segmented control button
-
Leading icon (optional)
-
Label text (optional)
-
Divider
Composition
Section titled “Composition”
-
Not justified - By default, each segmented control button keeps its original size based on the label and/or icon.
-
Justified - When you need to justify segmented control buttons, use either the width of the widest button or take the width of the available space and divide it equally between the segmented control buttons.
Variants
Section titled “Variants”There are several variations of segment control. To choose the right one, consider the context of the situation.

-
Text only - Displays only a text label.
-
Leading icon - Displays a descriptive icon before the text label to visually support the segmented control button.
-
Icon-only - Displays only an icon, suitable for actions clearly represented by the icon, especially when space is limited. Always complement an icon-only segment control with a brief tooltip explaining the segment’s action.
Usage guidelines
Section titled “Usage guidelines”-
When to use
-
When not to use
-
Content Guidelines
-
Tab vs Segmented control
When to use
Section titled “When to use”-
For a more visually attractive choice between two to five options
-
When you want to allow users to choose one option
-
To switch between different view formats (e.g. List view, Content view)
-
When changing the visual style of data presentations (e.g. Bar chart, Column chart, Pie chart)
-
To filter content (e.g. Daily, Weekly, Monthly, Yearly)
When not to use
Section titled “When not to use”-
When switching between different sections, use tab instead
-
For more than five options, use radio button, or select instead
-
When multiple options need to be selected at the same time, use checkbox instead
-
Do not use segment control for activating or deactivating items, use toggle instead
Tab vs Segmented control
Section titled “Tab vs Segmented control”| Use cases | Tab | Segmented control |
|---|---|---|
| Navigation between different sections. | ✅ Use | ❌ Don’t use |
| Switch to a different section of the application, which will have its own content. | ✅ Use | ❌ Don’t use |
| Switch between views or filter within the same section. | ❌ Don’t use | ✅ Use |
Content Guidelines
Section titled “Content Guidelines”Make sure your text labels are short, clear and always written in the same format. Use text labels that are either all nouns (e.g. Desktop, Mobile, Tablet) or all adjectives (e.g. Daily, Weekly, Monthly, Yearly).
Don’t write unnecessary long texts that need to be shortened with ellipsis (…).
Technical documentation
Section titled “Technical documentation”- Interaction & behavior
Interaction & behavior
Section titled “Interaction & behavior”Keyboard & Mouse Interactions
Section titled “Keyboard & Mouse Interactions”-
Press
Tabto focus on the first segmented control button. -
Press
Tabagain to continue navigating through the other segmented control buttons. -
Pressing
SpaceorEnterto select the focused segmented control button. If the active segmented control button is in focus, pressingSpaceorEnterwill not deselect it. -
Clicking the segmented control button selects it and updates the selected state. If the selected segmented control button is clicked again, it doesn’t deselect.
Accessibility
Section titled “Accessibility”-
Segmented control provides sufficient color contrast between states (Enabled, Hover, Active, Selected) to meet WCAG 2.2 AA standards requirements.
-
Keyboard navigation is fully supported, with clear focus indicators.
Related components
Section titled “Related components”-
Radio button - Radio buttons allow users to select a single option from mutually exclusive choices.
-
Select - Select is used to choose one or more options from a list.
-
Tab - Tabs are used to organize content by allowing the user to switch views.