Tabs

Tabs allow the user to interact across the sections to switch from one set of content to another, making the transition easily from one peer to the other.

Usage

Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.

Do's

  • Use tabs for navigation when dividing content into different sections.
  • The content should have the same level of hierarchy.
  • Tabs can contain icons and text. Text labels should be short and have a clear relation to content.

Don'ts

  • Do not use tabs to move through sequential content that needs to be read in a particular order.
  • Avoid using tabs for comparing content across multiple tabs, such as different sizes of the same item.

Placement and alignment

Placement

There are two variations of tabs, default and container. They are hierarchically the same and should never be nested within each other. Tabs are usually placed above the content under the header o general navigation.

Placement

Left: A standalone tab that can also be nested within components.

Right: Emphasized tab always paired with an attached background container.

Desktop

Default

When used for main navigation place tabs above the header using 100% of the width of the screen.

Container

When used for panel navigation place tabs in the top of the panel using all available width. Scrollable tabs are allowed when there is not enough space available.

Using scrollable tabs for panel navigation
Using scrollable tabs for panel navigation

Mobile

Main navigation

When used for main navigation place tabs above the header using 100% of the width of the screen.

Mobile main navigation

Left: Main navigation tabs are place above the content.

Right: Don't stack more than 4 fixed tabs.

Panel navigation

Mobile panel nagivation
Panel navigation tabs are placed in the top of the panel using all available width

Alignment

Tabs are always displayed horizontally in a single row. They can be left aligned or entered depending on the content and context.

Alignment

Left: Tabs are always displayed in a single row.

Content

Tabs content

Left: Text labels should clearly and succinctly describe the content of the tab they represent.

Center: Tab content should contain a cohesive set of items that share a common characteristics.

Right: Tab labels should appear in a single row. They can use a second line if needed, with truncated text.

Typography

Avoid to use all caps for tab labels. ALL CAPS is rarely a good idea because it's harder to read.

Typography
The sentence-case capitalization and semibold use is recommended style for tab labels

Behavior and interaction

Main navigation

Users can navigate between tabs by tapping a tab, or by performing a swipe gesture over content in mobile devices.

Panel navigation

Interacting with the tabs makes the content scrolls to the point that is associated with that specific tab, while the tabs keep fixed at the top of the container.

Panel navigation
Do not use main navigation if they only affect an specific panel
Scrollable panel

The use of scrollable tabs in panel navigation could cause swipe interferences with OS navigation.

Do not use main navigation if they only affect an specific panel.