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 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.