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 Link-List Implementation

The sbb-link-list is a component that can be used to collect and display more sbb-block-link.

<sbb-link-list>
  <sbb-block-link
    href="https://www.sbb.ch/en/help-and-contact/refunds-compensation/ticket-refunds.html"
    >Refunds</sbb-block-link
  >
  <sbb-block-link
    href="https://www.sbb.ch/en/help-and-contact/lost-found-office/submit-loss-report.html"
    >Loss Report</sbb-block-link
  >
  ...
</sbb-link-list>

Slots

The component can display an optional title,
which is visually shown as a level-5 sbb-title
and is used as the aria-labelledby attribute of the ul element.

The title can be set using the titleContent property or, alternatively, can be projected using the title slot.

<sbb-link-list title-content="Help &amp; Contact"> ... </sbb-link-list>

Style

The component will accept only sbb-block-link or sbb-block-link-button instances,
and it will sync its size and negative property with the inner links.

<sbb-link-list size="s" negative>
  <sbb-block-link
    href="https://www.sbb.ch/en/help-and-contact/refunds-compensation/ticket-refunds.html"
    >Refunds</sbb-block-link
  >
  <sbb-block-link
    href="https://www.sbb.ch/en/help-and-contact/lost-found-office/submit-loss-report.html"
    >Loss Report</sbb-block-link
  >
  ...
</sbb-link-list>

Orientation

The orientation property is used to set links' orientation; possible values are horizontal and vertical (default).
The optional property horizontalFrom can be used in combination with orientation='vertical'
to indicate the minimum breakpoint from which the orientation changes to horizontal.
The title will not be displayed in the horizontal orientation.

<sbb-link-list horizontal-from="medium">
  <sbb-block-link
    href="https://www.sbb.ch/en/help-and-contact/refunds-compensation/ticket-refunds.html"
    >Refunds</sbb-block-link
  >
  <sbb-block-link
    href="https://www.sbb.ch/en/help-and-contact/lost-found-office/submit-loss-report.html"
    >Loss Report</sbb-block-link
  >
  ...
</sbb-link-list>

Properties

Name Attribute Privacy Type Default Description
titleContent title-content public string | undefined The title text we want to show before the list.
titleLevel title-level public SbbTitleLevel '2' The semantic level of the title, e.g. 2 = h2.
size size public SbbLinkSize 's' Text size of the nested sbb-block-link instances. This will overwrite the size attribute of nested sbb-block-link instances.
horizontalFrom horizontal-from public SbbHorizontalFrom | undefined Selected breakpoint from which the list is rendered horizontally.
orientation orientation public SbbOrientation 'vertical' The orientation in which the list will be shown vertical or horizontal.
negative negative public boolean false Negative coloring variant flag.

Slots

Name Description
Use the unnamed slot to add one or more sbb-block-link.
title Use this slot to provide a title.
Examples
Link List Default
Link List XS
Link List No Title
Link List Negative
Link List Horizontal From
Link List With Slotted Title
HTML-Markup kopiert.
Playground
Link 1Link 2Link 3
Orientierung Vertikal Horizontal Titel Ja Nein Grössen XS S M Negativ Nein Ja Hintergrund White Milk Iron Charcoal Black
Imprint Contact Cookie settings