Skip to content

Tabs

Tabs are used to allow users to navigate quickly between views within the same context.

Example of the tabs component

Tab Item states are as follows: Default, Hover, Active, Disable, and Focus.

Examples of tab item states

There are two color variants of the tabs component.

Example primary and secondary tab colors

The tabs container always stretches the full width of its container. By default each tab item is sized to fit the content of the tab item and the tab items are aligned on the left in the tabs container. Alternatively, you can use the full width option to expand each tab item to fill the available width of the tabs container. Full width tabs are a great option when designing for tablet or mobile devices.

Example of width variants

In most instances, you should use no more than six tabs. This is to ensure that the UI remains organized and will reduce cognitive load for users. If more than six tabs are needed and/or exceeds the width of the viewport, enable the use of a horizontal scrollbar. At smaller breakpoints, the use of horizontal scrolling will be more common.

Example of how tabs could have a horizontal scrollbar

Tab labels should be short and scannable, usually one or two words, to easily differentiate the different content panes. Labels should never wrap to two lines. At mobile widths or during translation, it’s possible that the character length of a label will impact the experience.

Example of a short tab item label

Don’t use icons as they can get too small to recognize.

Example of tab items with only a label