Zur Navigation Zum Inhalt Kontakt Menu Find component Overview Lyne 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 Functional 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 Base Components Overview Base Components Overview Releases Design Tokens Komponenten Overview Base Informationen Sense & Purpose Community Assets Instructions Power-Apps Digital banner ads SAP Design Guidelines App Icons Toggle-Option Implementation

The sbb-toggle-option component is used inside the
sbb-toggle in order to render the toggle's options.

<sbb-toggle-option value="Value">Option</sbb-toggle-option>


It is possible to provide a label via an unnamed slot; the component can optionally display a sbb-icon
at the component start using the iconName property or via custom content using the icon slot.
Text and icon are not exclusive and can be used together.

<sbb-toggle-option value="Value" icon-name="app-icon-small"></sbb-toggle-option>

<sbb-toggle-option value="Value" icon-name="app-icon-small">Option</sbb-toggle-option>


The component can be displayed in checked or disabled states using the self-named properties.

<sbb-toggle-option value="Value" checked>Option</sbb-toggle-option>

<sbb-toggle-option value="Value" disabled>Option</sbb-toggle-option>


Name Attribute Privacy Type Default Description
checked checked public boolean false Whether the toggle-option is checked.
disabled disabled public boolean false Whether the toggle option is disabled.
value value public string | null null Value of toggle-option.
iconName icon-name public string | undefined The icon name we want to use, choose from the small icon variants from the ui-icons category from here https://icons.app.sbb.ch.


Name Description
Use the unnamed slot to add content to the label of the toggle option.
icon Slot used to render the sbb-icon.
Icon Only
Label And Icon
Icon Only Slotted
Label And Icon Slotted
HTML-Markup kopiert.
Imprint Contact Cookie settings