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 Mini-Button-Group Info

Was macht die Komponente?

Eine Mini-Button-Group ist eine horizontale Anordung von Mini-Buttons.

Wann soll die Komponente eingesetzt werden?

  • Um eine Liste von mehreren Mini-Buttons platzsparend und übersichtlich darzustellen.

Regeln

  • Mini-Buttons können mit der Divider-Komponente thematisch grupiert werden.
  • Die verfügbaren Grössen (S, M, L, XL) orientieren sich nach den verfügbaren Formular-Elementen und sollten konsistent eingesetzt werden.
Action-Group Mini-Button
Anatomie

Anatomie der Komponente


Nummer Typ Beschreibung Optional Hinweis
1 Komponente sbb-mini-button Nein
2 Komponente sbb-divider Ja
Demo

Spielwiese

Grössen S M L XL Negativ Nein Ja Mode (System-Einstellung) Light Dark Hintergrund White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Default
Negative
Negative Disabled
Size S
Size L
Size XL
HTML in Zwischenablage kopiert.
Implementation

The sbb-mini-button-group component displays a set of sbb-mini-button
optionally separated by a sbb-divider.

<sbb-mini-button-group accessibility-label="...">
  <sbb-mini-button icon-name="..." aria-label="..."></sbb-mini-button>
  <sbb-mini-button icon-name="..." aria-label="..."></sbb-mini-button>
  <sbb-divider orientation="vertical"></sbb-divider>
  <sbb-mini-button icon-name="..." aria-label="..."></sbb-mini-button>
</sbb-mini-button-group>

Style

The component has a negative variant which can be set using the negative property.

There are four available sizes: s, m (default), l and xl.

<sbb-mini-button-group negative size="l"> ... </sbb-mini-button-group>

Accessibility

Use the accessibility-label property to describe the purpose of the sbb-mini-button-group for screen-reader users.

If sbb-divider components are used as separators, their aria-hidden property is automatically set to true
to ensure that the button list is read by screen readers with the correct size.

Properties

Name Attribute Privacy Type Default Description
accessibilityLabel accessibility-label public string '' This will be forwarded as aria-label to the list that contains the buttons.
negative negative public boolean false Negative coloring variant flag.
size size public SbbMiniButtonGroupSize 'm' / 's' (lean) Size variant, either s, m, l or xl.

Slots

Name Description
Use the unnamed slot to add sbb-mini-button and sbb-divider elements.