Principles Foundation Accessibility Design System Guidelines Deutsch Français Italiano English Our design principles User-centred Recognisable Inclusive Reduced Holistic Self-explanatory Task-oriented Appropriate SBB Brand portal Logo Digital clock Rights of use Base colors Additional colors Off brand colors Icons Timetable icons Pictograms About accessibility Über diesen Guide Contact Further information Product Owner User Research Interaction Design Visual Design Development Content Design Testing What is a design system? Designing Coding FAQ Help Process Contribution Contact Overview Base Components Overview Releases Design Tokens Components Overview Base Informations Overview Base Components Overview App Icons Power-Apps Digital banner ads SAP Design Guidelines AI Design: Basics Mini-Button-Group Info

What does the component do?

A mini button group is a horizontal arrangement of mini buttons.

When should the component be used?

  • To display a list of several mini buttons in a space-saving and clear manner.

Rules

  • Mini buttons can be grouped thematically with the divider component.
  • The available sizes (S, M, L, XL) are based on the available form elements and should be used consistently.
Action-Group Mini-Button
Anatomy

Anatomy of the component


Number Type Description Optional Info
1 Component sbb-mini-button No
2 Component sbb-divider Yes
Demo

Playground

Sizes S M L XL Negative No Yes Mode (System Setting) Light Dark Background White Midnight Milk Charcoal Cloud Iron Midnight White Charcoal Milk Iron Cloud
Default
Negative
Negative Disabled
Size S
Size L
Size XL
Copy HTML to clipboard.
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.