Guidelines
When to use
- Change content’s layout: Allow the user to toggle between different design layouts of the content, e.g., table view, list, and card layout.
- Change content’s format: Allow the user to change the data format in the related content, e.g., to 24- and 12-hour formats.
- Sort content: Allow users to reorder the list according to specific criteria quickly.



When not to use
- Organizing content into distinct sections: Segmented Control should never be used to create sections with distinct information. Instead, Tabs should be used.


- Form selection control: Segmented Control cannot be used in a form when asking the user to select an option that will be saved and processed. MDS offers alternative components, which are documented in the form of component guidelines.


- Choosing a path in the form: Using Segmented Control ina. form to offer different paths to the user is not an approved pattern. It can be unclear to the user which data they should fill and what will be saved. Instead, try offering alternative paths in a step before. You can achieve it by using Drodpown or Split Button or adding an extra step in the form.


Segmented Control vs Tabs
Segmented Control allows users to toggle between alternate views for the same content. Tabs organize content into distinct sections within a single page. When switching tabs, user expect to see different information. When switching segments, they expect the same information in a different layout, order or format.
In the analog-life metaphor, tabs are like separate binders that help you quickly find the document you need. You know it can only be in one binder at a time. Segmented Control acts like a pencil with an eraser. You take that document and change the information’s format, layout, and order, keeping the same information.


Sizes
Height
Segmented Control comes in four height sizes: Small, Medium, Large, and Extra Large. Use the one that best matches the UI’s density, actions hierarchy, and the size of surrounding Buttons and Form Fields.
Width
The width of the Segmented Control should be adjusted to the UI and the length of the Segments’ labels. All Segments should be the same width.


In tight spaces like Small and Medium Side Panel, Floating Panels, Dialog, or on mobile touchpoints, Segmented Control should be set to use 100% of the parent container’s width.


Position
Place the Segmented Control above the related content to create a clear hierarchy and logical connection between the Control and the content that will be altered. It can be aligned to the left or right side of the related content area, but should never be centered in the content space.
Behavior
Mouse Interactions
Users can toggle to a different view by clicking on the enabled Segments.
Keyboard interactions

Key |
Interaction |
---|---|
Tab |
Sets focus on the first enabled, not selected, Segment (as most of the time, the first Segment is selected by default; it will focus on the second one). |
Tab x 2/3/… |
Moves focus to the next enabled Segment. |
Shift + Tab x 2/3/… |
Moves focus back to the previous Segment. |
Space or Enter |
Activates focussed Segment. |
Content
Maximum Segments
- Don’t use more than six Segments: Segmented Control best fulfils its purpose with six or fewer Segments. If you need more, try using Radio Button Group or Select instead.
