Zur Navigation Zum Inhalt Kontakt Menu Find component Overview Lyne 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 Functional 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 Base Components Overview Base Components Overview Design Tokens Components Overview Base Informationen Sense & Purpose Community Assets Instructions Power-Apps Digital banner ads SAP Design Guidelines App Icons
Find component

Lyne

Basics Animation

Animation

Border

Border

Grid

Grid

Spacings

Spacings

Typography

Typography

Components Action-Group

Action-Group

Alert

Alert

Alert-Group

Alert-Group

Autocomplete

Autocomplete

Button

Button

Calendar

Calendar

Card

Card

Card-Badge

Card-Badge

Checkbox

Checkbox

Checkbox-Group

Checkbox-Group

Chip

Chip

Clock

Clock

Datepicker

Datepicker

Dialog

Dialog

Divider

Divider

Footer

Footer

Form-Error

Form-Error

Form-Field

Form-Field

Header

Header

Header-Action

Header-Action

Icon

Icon

Image

Image

Journey-Header

Journey-Header

Link

Link

Link-List

Link-List

Logo

Logo

Menu

Menu

Menu-Action

Menu-Action

Radio-Button

Radio-Button

Radio-Button-Group

Radio-Button-Group

Selection-Panel

Selection-Panel

Signet

Signet

Slider

Slider

Tab-Group

Tab-Group

Tab Title

Tab Title

Tag

Tag

Tag-Group

Tag-Group

Teaser

Teaser

Teaser-Hero

Teaser-Hero

Time-Input

Time-Input

Title

Title

Toggle

Toggle

Toggle-Check

Toggle-Check

Tooltip

Tooltip

Tooltip-Trigger

Tooltip-Trigger

Title Implementation

The component renders a title according to the provided level.
Internally this is represented by the heading elements: h1, h2, h3, h4, h5 and h6.
In scenarios where the visual representation needs to be different from the semantic meaning of the title level,
it is possible to use the visual-level.

As a default the <sbb-title> contains spacing on top and bottom on the host. This can be removed or customized
via simple CSS rules.

Properties

Property Attribute Description Type Default
level level Title level "1" | "2" | "3" | "4" | "5" | "6" '1'
negative negative Choose negative variant boolean false
visualLevel visual-level Visual level for the title. Optional, if not set, the value of level will be used. "1" | "2" | "3" | "4" | "5" | "6" undefined
visuallyHidden visually-hidden Sometimes we need a title in the markup to present a proper hierarchy to the screen readers while we do not want to let that title appear visually. In this case we set visuallyHidden to true boolean undefined

Dependencies

Used by

Graph

graph TD;
sbb-alert --> sbb-title
sbb-dialog --> sbb-title
sbb-journey-header --> sbb-title
sbb-link-list --> sbb-title
sbb-message --> sbb-title
sbb-notification --> sbb-title
sbb-skiplink-list --> sbb-title
sbb-teaser --> sbb-title
style sbb-title fill:#f9f,stroke:#333,stroke-width:4px

Demo
Data without insights are trivial, and insights without action are pointless
H1 H2 H3 H4 H5 H6
White Milk Iron Charcoal Black
More examples on Storybook
Imprint Contact Cookie settings