Design
Component checklist
Overview
The Segmented Control switches a fan between two or three related views. Each segment is equal in width and carries a label, an icon, or both, with the selected one marked by a change of colour and bold text.
Usage
Segmented Control Behaviour
When selecting a particular segment, it will navigate to a specific destination or screen, and any prior fan interactions, such as scroll position, will be automatically reset.
Number of Segments
Within a Segmented Control, all segments are equal in width. Segmented control can have 2 or 3 segments. Each segment can either have label text or an icon, or both.
Segment Label
The Segment Label should clearly describe the content within the segment. Labels should always appear on a single line, and never span 2 lines.
Selected State
To differentiate a selected state from a default state, the colour of the segment will change depending on light or dark mode.
Accessibility
The Segmented Control doesn't solely depend on colour indications. Instead, a visual change is implemented through bold text to enhance usability.
Design
Appearance
|
Item |
Usage |
|---|---|
|
1 |
Light Mode |
|
2 |
Dark Mode |
Anatomy
|
Item |
Usage |
|---|---|
|
1 |
Label |
|
2 |
Icon (Optional) |
Variants
|
Item |
Variant |
|---|---|
|
1 |
2 Controls |
|
2 |
3 Controls |
Animation
sing-1 will be used when transitioning between selected and unselected states. See our Motion guidelines for more information.