Components
TabsTabs are used to switch content within a section.

Usage
Use Tabs to allow the user to switch content within a section. For navigation patterns consider using the Tabs menu component. For selecting options within a form setting the Toggle group could be more appropriate choice of component.
Navigation and content
The Tabs component is often used alongside a Tabs menu, at a hierarchically lower level to further organize content. In contrast the Tabs menu component is used for navigation between different pages within a page.

A fictional example where Tabs menu and Tabs are used in combination for navigation and organization.
When to use the tabs component



States
Selected, default, hover and pressed states are indicated by the background and text changing colour.

- Selected
- Default
- Hover
- Pressed
Formatting
Anatomy
The tabs component consists of a configurable number of tabs within a container.

- Container
- Text label
- Selected label
- Default label
- Close button (optional)
Modify
High emphasis
Tabs are available in two emphasis variants: low and high. Use low emphasis as the default variant in most cases. It gives the tab set a clear structure while keeping the visual expression calm. Use high emphasis when the active tab needs more prominence, for example when tabs are used to separate important views or support multiple hierarchical levels in the interface.

Example of a tab set with a more prominent selected tab.

Example of a tab set with a less prominent selected tab.
The high emphasis variant can be useful when tabs are used across multiple hierarchical levels and the active tab needs to stand out more clearly.

Example of a design with tabs separating content of multiple hierarchical levels.
Stretched labels
The width of the label can either be determined by the length of the text content, or alternatively the labels extend to fill the available horizontal space.

Default

Stretched labels
Label text
Text labels should be clear and concise in order to properly guide the user to their desired content.


Closable labels
Labels can be configured to be closable, typically along with the associated content. In this variant a icon button is added to the right edge of the label. In the stretched label variant he label text is adjusted to the left.

Example of tabs with closable labels