Skip to content

Tabs

Tabs are used to separate information into logical sections in the context of a single page and to quickly navigate between them.

With Element v48, the tabs have been completely re-implemented including breaking changes in the API. The old tabs have been renamed to *-legacy and are available via legacy entrypoint @siemens/element-ng/tabs-legacy. For more details, see the BREAKING CHANGES notes for Element v48.0.0 in the changelog.

Usage

Tabs

When to use

  • Use tabs to group content that belongs to the same category.
  • Use tabs when there is a large amount of content that can be separated.
  • Use tabs to make the content accessible without navigating across pages or compromising on space.
  • Different tab-panes should be logically related but mutually exclusive. A content element should only be in one tab at a time.

Best practices

  • Don't mix different content types within the same tab structure.
  • Avoid nested tabs (2 levels of tabs stacked on top of each other) since they add visual complexity, and are harder to navigate.

Except where otherwise noted, content on this site is licensed under MIT License.