Tabs consist of two parts- a tab and a tab panel. A tab is a label that represents the content of a tab panel. A tab panel is a region that contains the content associated with a tab. Use tabs to allow users to navigate easily between related views (content in tab panels) within the same context.
On this page
While tabs and a navigation bar may seem to have a similar purpose, they have a strong cognitive difference. The content of each tab is considered to be related to that of the others and selecting between them keeps the customer on the same page. In a navigation bar, however, the content of each section isn’t necessarily related to the others and making a selection will open up that content in a separate view.
Tabs are used to group related information into different categories, this helps to reduce cognitive load. Category labels should be short and clear.
Tabs can be a helpful way of letting users quickly switch between related information in tab panels.
If content is nested by using tabs or accordions, the page may appear more organized and structured. However, the complexity of the page and how to use it increases. This is doubled if you nest tabs in a tab panel.
Nesting may cause:
Tabs can be use on their own or inside a card with a heading.
Tabs will work at all breakpoints. When the tab labels are too big for the tab list, the left and right overflow buttons show to help user navigate when tab list is too big for the container. Buttons change the active tab left and right. The overflow buttons will appear at different break points depending on the number of tabs.
Connect with the DLS Team on Slack or by email.
Check out additional resources.