Toggles are selection tools, typically used to change the view of page information or apply a setting. They’re typically used in data visualization contexts like tables or graphs, forms, search results, and settings pages.

Also known as: Flip button, state button, selector, UISegmentedControl (iOS), toggle button (Android).

Anatomy

A group of three toggle buttons labeled 'Label 1', 'Label 2', and 'Label 3'. The first toggle button is pressed, with a label featured by callout A and a leading icon featured by callout B.

A. Label (optional): Text describing the toggle button.
B. Icon (optional): Leading or trailing icon used instead of a label or to enhance its meaning.

Usage

When to use and when not to use different types of toggle buttons
Component When to use When not to use
Single-selectTo change the view of a dataset.

When only one button can be active at a time.
To change between pages or content sections. Use tabs instead.
Multi-selectTo apply settings.

When any number of buttons may be active, including none.
To perform actions or to group unrelated concepts.

Best practices

  • Don’t use toggles in place of radio buttons or checkboxes.
  • Ensure toggles within the same group are related and apply to the same element within the interface.
  • Place toggles near the element they control to ensure their purpose and function is clear.
  • Limit toggle groups to four or five buttons to avoid overwhelming users.
A group of three toggle buttons labeled 'New files,' 'Edits,' and 'Comments.'

Do Ensure toggle buttons are related to views or settings.

A group of three toggle buttons labeled 'Print,' 'Save,' and 'Export.'

Don't Use toggles to perform actions or group unrelated concepts.

An icon toggle button layout with a folder A-Z icon, folder account icon, and folder icon

Do Use icon-only toggles to save space.

A single toggle button with a key change icon, heading style 2 icon, and merchant icon

Don't Use unfamiliar or unrecognizable icons.

Behaviors

Toggle buttons have two functionalities:

Single-select

Single-select toggle buttons can only be selected one at a time. They represent options that can’t be applied at the same time, like separate views of a dataset. One button is always active, and selecting an inactive button deactivates the active button.

A group of three toggle buttons that have leading icons, where 'Map view' is selected and 'List view' and 'Grid view' are unselected.

Multi-select

Multi-select toggle buttons can have any number of buttons selected, including none. They’re commonly used to apply settings. Selecting an inactive button does not affect any active buttons. This is the only type of toggle that can be used alone to represent a single option.

An icon toggle button with a pin icon followed by an icon button layout with a plane icon, train icon, and car icon

Content

  • Use sentence case without punctuation for all labels.
  • Avoid acronyms or jargon.
  • Keep labels short to avoid unnecessary truncation.
  • Phrase labels so selecting the toggle makes the statement true.