Principi Base Accessibilité Sistema di design Guidelines Deutsch Français Italiano English I nostri principi di design Soluzioni focalizzate sull’utente Riconoscibilità Inclusione Riduzione Olistico Autoesplicativo Orientamento all’attività Adeguatezza Portale della marca FFS Logo Orologio digitale Diritti di utilizzazione Colori die base Colori addizionali Colori Off Brand Icone Icone dell'orario Pittogrammi Informazioni sull’accessibilità Über diesen Guide Contatti Letture consigliate Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Designing Coding FAQ Aiuto Processo Contribution Contatto Introduzione Base Componenti Introduzione Releases Design Tokens Componenti Introduzione Base Informations Introduzione Base Componenti Introduzione Power-Apps Banner pubblicitari digitali SAP IA Design : Base. Icone delle app Questa pagina non è disponibile nella lingua desiderata. Lingue disponibili: Deutsch English Carousel Info

Was macht die Komponente?

Ein Carousel ist ein interaktives Element zur Anzeige mehrerer Inhalte innerhalb eines begrenzten Bereichs. Es zeigt jeweils einen oder mehrere Inhalte an und ermöglicht das horizontale Durchblättern per Navigationselemente oder Gesten.

Wann soll die Komponente eingesetzt werden?

  • Wenn mehrere ähnliche Inhalte gezeigt werden sollen, aber nicht alle gleichzeitig Platz haben.
  • Wenn der Fokus auf einer visuellen oder inhaltlichen Abfolge liegt (z. B. Highlights, Kampagnen, Produkte).
  • Wenn der verfügbare Platz begrenzt ist und Inhalte platzsparend präsentiert werden sollen.

Regeln

  • Es sollten nicht mehr als 7 Slides verwendet werden.
  • Jeder Slide soll einen klaren Fokus haben.
  • Carousels sollen nicht automatisch wechseln – nur manuelle Steuerung durch den Benutzer.
Carousel-List
Anatomie

Anatomie der Komponente


Nummer Typ Beschreibung Optional Hinweis
1 Slot Beliebiger Inhalt erlaubt Nein
2 Komponente sbb-compact-paginator Nein
Demo

Spielwiese

Slide 1

Start

Slilde 2

Another button

Slide 3

Schatten Ja Nein Mode (System-Einstellung) Light Dark Hintergrund White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Native
Native Mobile
Sbb Image
Figure
Link
Button
Image And Text
No Shadow
HTML in Zwischenablage kopiert.
Implementation

The sbb-carousel is a slideshow component that can be used to display a series of items, as images, once at a time,
allowing users to cycle through them via horizontal scrolling or using controls (e.g. a paginator).

The component must be used together with a sbb-compact-paginator and a sbb-carousel-list,
which accepts one or more sbb-carousel-item.

<sbb-carousel>
  <sbb-carousel-list>
    <sbb-carousel-item>
      <img src="../img-1.jpg" alt="Image 1" height="300" width="400" />
    </sbb-carousel-item>
    <sbb-carousel-item>
      <img src="../img-2.jpg" alt="Image 2" height="300" width="400" />
    </sbb-carousel-item>
    <sbb-carousel-item>
      <img src="../img-3.jpg" alt="Image 3" height="300" width="400" />
    </sbb-carousel-item>
  </sbb-carousel-list>
  <sbb-compact-paginator></sbb-compact-paginator>
</sbb-carousel>

Slots

The content is projected in an unnamed slot.

The length and the pageSize properties of the sbb-compact-paginator are automatically set based on the number of slotted images.

The values of the accessibilityPageLabel, accessibilityPreviousPageLabel and accessibilityNextPageLabel properties
are also set, in order to automatically override the 'page' keyword to the 'slide' one.
If needed, consumers can provide their own values.

Interactions

It's possible to switch between items using the paginator controls, or, if the component is focused, using the arrow keys.

Keyboard Action
Down Arrow / Right Arrow Navigate to the next item.
Up Arrow / Left Arrow Navigate to the previous item.

Accessibility

Following the ARIA carousel pattern,
the component has role="region" and aria-label="carousel".

To not break the accessibility when links are used together with images, please place the image within the anchor tag.

<sbb-carousel>
  <sbb-carousel-list>
    <sbb-carousel-item>
      <a href="#" target="_blank">
        <img src="../img-1.jpg" alt="SBB image" height="300" width="400" />
      </a>
    </sbb-carousel-item>
    ...
</sbb-carousel>

Properties

Name Attribute Privacy Type Default Description
shadow shadow public boolean false Used to display a box-shadow around the component.

Slots

Name Description
Use the unnamed slot to add the sbb-carousel-list for content and a sbb-paginator for controls.