Zur Navigation Zum Inhalt Kontakt Menu Trouver un composant Aperçu Lyne 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 fonctionnelles 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 Base Composants Aperçu Base Composants Overview Releases Design Tokens Komponenten Aperçu Base Informations Sens & objectif Community Assets Instructions Power-Apps Bandeaux publicitaires numériques SAP Icônes d’applications Cette page n'est pas disponible dans la langue souhaitée. Langues disponibles Deutsch English Navigation-Link Implementation

The sbb-navigation-link component is an action element contained by
a sbb-navigation-list component
or a sbb-navigation-marker component.

Link properties

The component is internally rendered as a link,
accepting its associated properties (href, target, rel and download).

<sbb-navigation-link href="#info" target="_blank">Link</sbb-navigation-link>

State

The navigation button can have an initial active state which can be set by using the class .sbb-active.

<sbb-navigation-link class="sbb-active" href="#info" target="_blank">Link</sbb-navigation-link>

Style

The component has three different sizes, which can be changed using the size property (l, which is the default, m and s).

<sbb-navigation-link href="#info" size="m">Link</sbb-navigation-link>

Properties

Name Attribute Privacy Type Default Description
size size public SbbNavigationActionSize | undefined 'l' Action size variant.
connectedSection - public SbbNavigationSectionElement | undefined The section that is beign controlled by the action, if any.
marker - public SbbNavigationMarkerElement | null The navigation marker in which the action is nested.
section - public SbbNavigationSectionElement | null The section in which the action is nested.
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 sbb-navigation-link.
Beispiele
Size L
Size M
Size S
HTML-Markup kopiert.
Impressum Contact Paramètres des cookies