Navigieren auf digital.sbb.ch

Tab

1. What does the component do?

  • It is used to structure the display of data and forms.

2. When should the component be used?

  • For switching between various aspects within the same context.
  • When the content of various aspects cannot be seen at the same time by the user.

3. Rules

  • The first tab is always selected by default.
  • The tab names are always single-line.
  • The tab name should be as simple and concise as possible so that the themes can be quickly understood.
  • If the tab is too long for the viewport, the width is shortened and the names are shortened with “…”. When hovering over the tab, the complete name appears in a tooltip.
  • Another tab module is not permitted within a tab (tab-in-tab).

4. Variants and statuses

The component has the following statuses:

  • Active
  • Inactive
  • Hover
  • Disabled

4.1 Standard

Image of the tab component

Design specification

Code specification