Zur Navigation Zum Inhalt Kontakt Menu Komponente finden Übersicht Lyne Prinzipien Grundlagen Barrierefreiheit Design System Guidelines Deutsch Français Italiano English Unsere Gestaltungsprinzipien Nutzerzentriert Wiedererkennbar Inklusiv Reduziert Ganzheitlich Selbsterklärend Aufgabenorientiert Passend SBB Markenportal Logo Digitale Uhr Nutzungsrechte Basis-Farben Funktionale Farben Off-Brand Farben Icons Fahrplan-Icons Piktogramme Über Barrierefreiheit Über diesen Guide Kontakt Weitere Informationen Product Owner User Research Interaction Design Visual Design Development Content Design Testing Was ist ein Design System?​ Designing Coding FAQ Hilfe Prozess Contribution Kontakt Übersicht Basis Komponenten Übersicht Basis Komponenten Übersicht Basis Komponenten Übersicht Releases Design Tokens Komponenten Übersicht Basis Informationen Sinn & Zweck Community Assets Anleitung Power-Apps Digitale Werbebanner SAP App Icons Breadcrumb Implementation

The sbb-breadcrumb is a component used to display a link to a page.

When it's used within the sbb-breadcrumb-group component,
it can display the list of the links the user visited to arrive at the current page.

Slots

It is possible to provide a text via an unnamed slot; the component can optionally display a sbb-icon
at the component start using the iconName property or via custom content using the icon slot.
Text and icon are not exclusive and can be used together.

<sbb-breadcrumb href="/contact">Contact us</sbb-breadcrumb>

<sbb-breadcrumb href="/book-your-trip" icon-name="travel-backpack-medium"></sbb-breadcrumb>

<sbb-breadcrumb href="/info">
  Info
  <sbb-icon slot="icon" name="circle-information-small"></sbb-icon>
</sbb-breadcrumb>

Link properties

It's possible to set all the link related properties (download, href, rel and target).

<sbb-breadcrumb href="/info" target="_blank" rel="help">Info</sbb-breadcrumb>

Accessibility

The aria-current property should be used to make the breadcrumb read correctly by screen-readers when the component
is used in the sbb-breadcrumb-group.

By default, the sbb-breadcrumb-group component sets aria-current="page" on the last slotted sbb-breadcrumb.

Properties

Name Attribute Privacy Type Default Description
iconName icon-name public string | undefined The icon name we want to use, choose from the small icon variants from the ui-icons category from here https://icons.app.sbb.ch.
href href public string | undefined The href value you want to link to.
target target public LinkTargetType | string | undefined Where to display the linked URL.
rel rel public string | undefined The relationship of the linked URL as space-separated link types.
download download public boolean | undefined Whether the browser will show the download dialog on click.

Slots

Name Description
Use the unnamed slot to add content to the breadcrumb.
icon Use this to display an icon as breadcrumb.
Beispiele
Default
Icon
Icon And Text
Slotted Icon And Text
Long Content
No Link
HTML-Markup kopiert.
Playground
Breadcrumb Label
Icon Ja Nein Hintergrund White Milk Iron Charcoal Black
Komponente finden

Lyne

Impressum Kontakt Cookie Einstellungen