Vertical Tabs

Vertical Tabs are tabs that align vertically on the left side of another component and provide internal navigation options as a means to organize information within a single screen. After navigating to a given screen using the network composer and the side menu, Vertical Tabs allow users to change the view of the information in the content area to the right of the tabs.

Vertical Tabs should not be used to navigate between screens or hierarchies.

Vertical Tabs organize content within a single screen and allow users to move between different views of that content, which is displayed in the content area to the right of the tabs. Most commonly, Vertical Tabs are used with charts that display data horizontally (e.g. Bar Chart, Butterfly Chart) to view that data in various ways. For example, Vertical Tabs can allow users to view Oscar-nominated films by genre by selecting each genre tab. This approach contrasts with Horizontal Tabs, which are often used to sub-categorize information within the broader context of the screen.

Anatomy

  1. Card background

  2. Tab (selected)

  3. Tab

  4. Next icon

  5. Tab content area

Best practices

  • Use Vertical Tabs to display alternate views of charts, especially charts that display data horizontally.
  • Use Vertical Tabs to display high-level visual data; consider Horizontal Tabs or another component for text-heavy content.
  • Organize tabs so that the content of each tab is at the same hierarchical level.
  • Incorporating icons with tab labels can help make the tabs visually distinct at a glance, but they risk adding clutter. Add icons to your tabs only when they help to meaningfully differentiate the tabs from one-another.
  • Because they display in a more compact fashion, Vertical Tabs scale effectively to large numbers of tabs (7 or greater) compared to Horizontal Tabs. However, you should keep Tab labels concise and follow the writing guidelines, because long labels take away space from the content display area.
  • Vertical Tabs are most useful for content displaying across all 12 columns of the grid (i.e. extra large on the grid). Avoid using Vertical Tabs for content spanning fewer than 6 columns in the grid as this can create accessibility issues. See Grid for more information.

Do

Label tabs with distinct categories whose content
is at approximately the same hierarchical level.

Don't

Don't label the tabs with categories whose content
is overly similar or may have a lot of overlap.

Common patterns

With Charts

Use Vertical Tabs to provide alternate views of the same data set using charts.

Properties

  • Tab Items section – Required. A section of properties used to configure vertical tabs, including the text and icon that displays:
    • Label field – Required. The hover text that displays on the action icon or the menu item label.
    • Description field – Optional. The tooltip text that displays when the user hovers over the tab.
    • Icon field – The UI icon that displays on the tab.
    • Tab ID field – Required. A unique identifier for the tab item.
  • Show Icon checkbox – Optional. If selected, the icon displays on the tab.
  • Tab Selected Initially field – Optional. Specifies the tab to set as active initially, starting from 1.
  • Visibility Permission field – Optional. The user's permission to access the component. If a user is not assigned a role that includes this permission, they cannot view or interact with the component.
  • Visibility Permission Not Assigned drop-down – Optional. If the user does not have permission to access the component, specifies whether to hide or disable it:
    • Hide – The component is hidden.
    • Disable – The component is visible but not cannot be interacted with.

Emitted Events

  • On Tab Select – The user selects a tab.

Functions

  • Set Selected Tab by Index – When invoked in an event, the selected tab displays when the screen loads.
  • Set Selected Tab by ID – When invoked in an event, the selected tab displays.
  • Get Selected Tab by Index – When invoked in an event, the data for the selected tab is retrieved based on the index.
  • Get Selected Tab by ID – When invoked in an event, the data for the selected tab is retrieved based on the tab ID.

With labels

  • Tab Items:
    • Icon not included.
  • Show Icon not selected.
  • Tab Selected Initially included with the first tab selected (set to 1).

With labels and icons

  • Tab Items:
    • Icon included.
  • Show Icon selected.
  • Tab Selected Initially included with the first tab selected (set to 1).