Skip to content
界面图谱Interface Atlas
☰
中文
ComponentsSelection

Segmented Control

分段控制器

Aliases:分段选择几个按钮连在一起周月年切换segmented buttons

What is it

A compact group of mutually exclusive choices with an immediately visible selection. Use it to change a time range or display mode within the same view. Keep labels short and all choices visible. Unlike tabs, it usually changes how the current content is presented rather than moving between separate panels.

Name disambiguation

A segmented control is a compact mutually-exclusive switch for modes or filters. Tabs swap content panels. Radio is in-form single choice.

Interactive playground

Try it. Make an informed choice.

Switch between week, month and year with pointer or arrow keys; watch both the metric and chart update.

Loading lab…

What to look for

  • 01The selected option must agree with the displayed result.
  • 02Exactly one option is selected; arrow keys move through the group.

✓ When to use

  • Choose a week, month or year for a chart.
  • Change density or ordering in one view.

✕ When not to use

  • Use a select for many or lengthy options.
  • Use checkboxes for multiple selections.

Variants

Filled

填充分段

A shared surface with a raised selection for utility interfaces.

Outlined

描边分段

An outer border with an accented selection.

Implementation

display: flex:checked:focus-visible

Use native radios with the same name to retain arrow-key navigation. Give the group an accessible name and make selection visible beyond color. Aim for a 40px target height and update the result immediately.

Related concepts

Not to be confused with

Tabs标签页

Tabs map to content panels; segmented control to state or mode.

Radio单选框

Radio is a form field; segmented control is a view switch.

Switch开关

A switch is on/off; a segmented control picks one of several.

Applicable styles

Sources

Markdown for agents · JSON