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 Releases Design Tokens Komponenten Overview Base Informationen Overview Base Components Sense & Purpose Community Assets Instructions Power-Apps Digital banner ads SAP Design Guidelines App Icons Divider Info

What does the component do?

A divider is a visual dividing line that separates content or sections within a page or content block.

When should the component be used?

  • To create visual separation between different content or sections.
  • To improve the structure and readability of content.
  • To separate logical groups of elements and clarify the hierarchy of information.

Rules

  • A divider should be discreet and unobtrusive so as not to disrupt the flow of reading
  • The length and alignment of the divider should be adapted to the surrounding layout and content (horizontal or vertical)
  • Make sure that the divider has sufficient distance from the surrounding elements to fulfil its function as a separating element
Anatomy
Anatomy of the component
Demo

Examples

Divider Horizontal
Divider Vertical
Divider Negative
HTML-Markup kopiert.
Implementation

The sbb-divider is used to visually divide sections.

Style

Based on the orientation property, the sbb-divider can be displayed vertically or horizontally.

It's also possible to display the component in negative variant using the self-named property.

<sbb-divider orientation="vertical"></sbb-divider>

<sbb-divider negative></sbb-divider>

Properties

Name Attribute Privacy Type Default Description
negative negative public boolean false Negative coloring variant flag.
orientation orientation public SbbOrientation 'horizontal' Orientation property with possible values 'horizontal' | 'vertical'. Defaults to horizontal.
Imprint Contact Cookie settings