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 Overview Releases Design Tokens Komponenten Aperçu Base Informations Aperçu Base Composants 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-Button Info

Was macht die Komponente?

Sie ist Teil der Navigation-Komponente.

Wann soll die Komponente eingesetzt werden?

  • Nur innerhalb der Navigation-Komponente.
Anatomie
Anatomie der Komponente
Nummer Typ Beschreibung Optional Hinweis
1 Komponente sbb-navigation-marker Nein
1a Komponente sbb-navigation-link oder sbb-navigation-button Nein
2 Komponente sbb-navigation-section Nein
3 Text Label Nein
4 Komponente sbb-navigation-list Nein
4a Text Label Nein
4b Komponente sbb-navigation-link oder sbb-navigation-button Nein
5 Komponente sbb-transparent-button Nein
Demo

Beispiele

HTML-Markup kopiert.
Implementation

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

Button properties

The component is internally rendered as a button,
accepting its associated properties (type, name, value and form).

<sbb-navigation-button value="menu" name="menu">Button</sbb-navigation-button>

State

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

<sbb-navigation-button class="sbb-active" value="menu" name="menu">Button</sbb-navigation-button>

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-button value="menu" name="menu" size="m">Button</sbb-navigation-button>

Properties

Name Attribute Privacy Type Default Description
connectedSection - public SbbNavigationSectionElement | undefined The section that is beign controlled by the action, if any.
form form public string | undefined The
element to associate the button with.
marker - public SbbNavigationMarkerElement | null The navigation marker in which the action is nested.
name name public string The name of the button element.
section - public SbbNavigationSectionElement | null The section in which the action is nested.
size size public SbbNavigationActionSize | undefined 'l' Action size variant.
type type public SbbButtonType 'button' The type attribute to use for the button.
value value public string The value of the button element.

Slots

Name Description
Use the unnamed slot to add content to the sbb-navigation-button.
Impressum Contact Paramètres des cookies