Toggle button group

v1.1

A toggle button group is a single and multi selection pattern that provides increased visual emphasis for the available choices.

  • CSS
  • Marko
  • React
Stylized artwork of a toggle button group.

Considerations

Quick

They should be lightweight and short enough to scan instantly.

Informative

Each option should be self-explanatory, with clear content that make decisions easy.

Anatomy

When to use

Toggle buttons work best when options stand on their own, helping create a strong visual hierarchy that guides users. For situations where the selection option is isolated, toggle buttons make the experience clear and focused. 


  • Use toggle buttons when selection options exist in isolation, meaning they are not part of a multiple selection groups. 

  • Avoid toggle buttons when multiple selection sections appear on the same page or layout. In these cases, use radio buttons for single-choice selections or checkboxes for multiple-choice selections.

Properties

Behavior

Size

It is important to ensure you follow the sizing guide for each toggle button variant. The various styles and layouts adhere to different minimum and maximum sizing rules.

Screen sizes

Best practices

Specs