Principes Bases Accessibilité Système de design Guidelines Deutsch Français Italiano English Nos principes de design Centré sur l’utilisateur Reconnaissable Inclusif Minimaliste Holistique Auto-explicatif Axé sur les tâches Approprié Portail de la marque CFF Logo Horloge numérique Droits d’utilisation Couleurs de base Couleurs supplémentaires Couleurs off-brand Icônes Icônes de l’horaire Pictogrammes À propos de l’accessibilité À propos de ce guide Contact Informations complémentaires Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Conception Développer FAQ Aide Procès Contribution Contact Aperçu Base Composants Aperçu Releases Design Tokens Composants Aperçu Base Informations Aperçu Base Composants Aperçu Power-Apps Bandeaux publicitaires numériques SAP IA Design : Bases Icônes d’applications Cette page n'est pas disponible dans la langue souhaitée. Langues disponibles: Deutsch English Breadcrumb Info

Was macht die Komponente?

Sie ist Teil der Breadcrumb-Group-Komponenten.

Wann soll die Komponente eingesetzt werden?

  • Nur in Kombination mit der Breadcrumb-Group-Komponente.
Breadcrumb-Group
Anatomie

Anatomie der Komponente


Nummer Typ Beschreibung Optional Hinweis
1a Komponente sbb-breadcrumb Nein Nur Icon
1b Komponente sbb-breadcrumb Nein Nur Label
2 Komponente sbb-icon - Dient zur Trennung zweier Breadcrumbs
Demo

Spielwiese

Breadcrumb Label
Icon Ja Nein Mode (System-Einstellung) Light Dark Hintergrund White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Default
Icon
Icon And Text
Slotted Icon And Text
Long Content
No Link
HTML in Zwischenablage kopiert.
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>

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 accessibility-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 accessibility-current="page" on the last slotted sbb-breadcrumb.

Properties

Name Attribute Privacy Type Default Description
accessibilityCurrent accessibility-current public string '' This will be forwarded as aria-current to the inner anchor element.
accessibilityLabel accessibility-label public string '' This will be forwarded as aria-label to the inner anchor element.
download download public boolean false Whether the browser will show the download dialog on click.
href href public string '' The href value you want to link to.
iconName icon-name public string '' 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.
rel rel public string '' The relationship of the linked URL as space-separated link types.
target target public LinkTargetType | string '' Where to display the linked URL.

Slots

Name Description
Use the unnamed slot to add content to the breadcrumb.
icon Use this to display an icon as breadcrumb.