Segmented Control

A control for switching between a small set of related views or options.

Segmented Control/Hero

Component checklist

Design

Up to date

Flutter

Up to date

Widgetbook

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

Segmented Control/Appearance

Item

Usage

1

Light Mode

2

Dark Mode

Anatomy

Segmented Control/Anatomy

Item

Usage

1

Label

2

Icon (Optional)

Variants

Segmented Control/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.