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 Container Implementation

The sbb-container is a component that displays its content with the default page spacing. It also supports the slotting of a sbb-sticky-bar.

<sbb-container>
  <!-- Any other kind of content. -->
  ...

  <!-- Sticky bar should go last. -->
  <sbb-sticky-bar> ... </sbb-sticky-bar>
</sbb-container>

Slots

The sbb-container content is provided via an unnamed slot.

Style

By default sbb-container uses the page spacing defined in the layout documentation. Optionally the user can use the expanded property (default: false) to switch to the page spacing expanded layout.
Spacing options are applied to all of the container's content, including the sbb-sticky-bar.
The component has also four color variants that can be set using the color property (default: white).

<sbb-container expanded variant="milk"> ... </sbb-container>

Properties

Name Attribute Privacy Type Default Description
expanded expanded public boolean false Whether the container is expanded.
color color public 'transparent' | 'white' | 'milk' 'white' Color of the container, like transparent, white etc.

Slots

Name Description
Use the unnamed slot to add anything to the container.
sticky-bar The slot used by the sbb-sticky-bar component.
Beispiele
Default
Transparent
Milk
Expanded
HTML-Markup kopiert.
Impressum Contact Paramètres des cookies