Principles Foundation Accessibility Design System Guidelines Deutsch Français Italiano English Our design principles User-centred Recognisable Inclusive Reduced Holistic Self-explanatory Task-oriented Appropriate SBB Brand portal Logo Digital clock Rights of use Base colors Additional colors Off brand colors Icons Timetable icons Pictograms About accessibility Über diesen Guide Contact Further information Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Designing Coding FAQ Help Process Contribution Contact Overview Base Components Overview Releases Design Tokens Components Overview Base Informations Overview Base Components Overview App Icons Power-Apps Digital banner ads SAP Design Guidelines AI Design: Basics Sidebar-Title Info

What does the component do?

It is part of the sidebar component.

When should the component be used?

  • Only within the sidebar component.
Sidebar
Demo Default
Copy HTML to clipboard.
Implementation

The sbb-sidebar-title component extends the sbb-title component.

Use it inside the sbb-sidebar
to display a header in the sidebar with a title.
The slot title-section is automatically assigned to be properly positioned on the sbb-sidebar.

<sbb-sidebar role="navigation">
  <sbb-sidebar-title>A describing title of the sidebar</sbb-sidebar-title>
</sbb-sidebar>

Style

In scenarios where the visual representation needs to be different from the semantic meaning of the title level,
it is possible to use the visualLevel property (default value: 5).

Properties

Name Attribute Privacy Type Default Description
level level public SbbTitleLevel '2' Title level
visualLevel visual-level public SbbTitleLevel | null '5' Visual level for the title.

Slots

Name Description
Use the unnamed slot for the content of the sidebar-title.