Anatomy
Structure
Selected content tab: Only one content tab can be selected at a time and there should always be one selected.
Content tab: Selectable container for each content view.
Label: Text label or icon that describes the content view.
Width
Each content tab in the group should be the same width.
Placement
Place the content switcher above the content area to create a clear hierarchy for the section that the switcher controls.
Content
Content switches can be used with or without icons. It is highly recommended to be concise and specific and limit text labels to two to three words. Text labels should clearly communicate the view users will see and the content contained in the view.
Use sentence case for a text label.
Keep text labels short — 1 to 3 words.
Text labels should make it clear which view users will see and what content the view contains.
Behaviors
The switcher allows for the display of only one content section at a time, with the first content tab determined by usage and serving as the default selection.
Icon variant
The icon content switcher variant replaces text labels with icons to represent alternate views of similar or related content. This type of switcher is commonly employed when space is at a premium or when icons can effectively convey the meaning of the sections, such as when choosing between a list view and a card view.
States
The content switcher includes three content tab states: selected, unselected and disabled.