Intro
The tab bar comprises a series of tabs that each link to a different content area or view. You can use the tab bar to navigate between subpages for an object, as a filter, or to visualize process steps.
Tab bar
When to Use
Do
Use the tab bar:
- To display multiple subpages for a business object on one page.
- To let users switch easily between subpages.
- To visualize clear-cut process steps.
- To offer prominent, one-click visual filters above a set of items.
Don't
Don’t use the tab bar:
- To show only a single tab.
Anatomy
Tab Bar
-
Main bar: Contains two types of element:
- Tab: The clickable item inside the tab container.
- Tab separator: Visual indicator used to separate the tabs.
-
Overflow menu: Contains any remaining tabs that can’t be displayed in the available space.
-
Content area: Contains the content for the selected tab.
Anatomy of the tab bar
Tab
- Icon: Icon for the tab.
- Text: Text for the tab.
- Additional text: Supplementary text for a tab, such as a count.
- Subtabs: A tab can contain subtabs. For details, see Hierarchies.
The visual representation of the tab adapts automatically, depending on the elements it contains.
Anatomy of a tab
Types
You can use different tab bar variants, depending on your use case:
Text Tabs
https://www.sap.com/design-system/live-examples/Tab_Bar/TabBar_LE_TextTabs.html
Tab bar with text tabs – live example
Icon Tabs
Tab bar with icon tabs
Filter Tabs
Tab bar with filter tabs
Process Tabs
Tab bar with process tabs
Behavior and Interaction
Selection
https://www.sap.com/design-system/live-examples/Tab_Bar/TabBar_LE_Selection.html
Tab selection – live example
Hierarchies
If the parent tab has its own content, it is separated into two interactive areas, like a split button:
- Clicking the left area (text) displays the content for the parent tab.
- Clicking the right area (arrow) opens a menu with the subtabs.
Parent tabs with own content
Parent tabs without own content
Responsive Behavior
Overflow
If there isn’t enough space to show all the tabs on the main bar, an overflow menu appears automatically, containing all the remaining tabs.
You can set the overflow mode, depending on your use case:
- End (default): The overflow only appears at the end of the tab bar. Use this mode if the order of the tabs isn’t relevant.
- Start and End: The overflow menu can appear dynamically either on one or on both sides of the tab bar. Where the overflow appears depends on which tab is activated. Use this mode if the tabs need to stay in the same order.
You can also replace the buttons for the overflow menus with custom buttons.
Overflow mode ‘End’
Overflow mode ‘Start and End’
Related Links
Components
Implementation
- Tab Container
(UI5 Web Components documentation)
Components
Implementation
- Tab Container
(UI5 Web Components documentation)