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 Design Tokens Components Overview Base Informationen Sense & Purpose Community Assets Instructions Power-Apps Digital banner ads SAP Design Guidelines App Icons
Find component

Lyne

Basics Animation

Animation

Border

Border

Grid

Grid

Spacings

Spacings

Typography

Typography

Components Action-Group

Action-Group

Alert

Alert

Alert-Group

Alert-Group

Autocomplete

Autocomplete

Button

Button

Calendar

Calendar

Card

Card

Card-Badge

Card-Badge

Checkbox

Checkbox

Checkbox-Group

Checkbox-Group

Chip

Chip

Clock

Clock

Datepicker

Datepicker

Dialog

Dialog

Divider

Divider

Footer

Footer

Form-Error

Form-Error

Form-Field

Form-Field

Header

Header

Header-Action

Header-Action

Icon

Icon

Image

Image

Journey-Header

Journey-Header

Link

Link

Link-List

Link-List

Logo

Logo

Menu

Menu

Menu-Action

Menu-Action

Radio-Button

Radio-Button

Radio-Button-Group

Radio-Button-Group

Selection-Panel

Selection-Panel

Signet

Signet

Slider

Slider

Tab-Group

Tab-Group

Tab Title

Tab Title

Tag

Tag

Tag-Group

Tag-Group

Teaser

Teaser

Teaser-Hero

Teaser-Hero

Time-Input

Time-Input

Title

Title

Toggle

Toggle

Toggle-Check

Toggle-Check

Tooltip

Tooltip

Tooltip-Trigger

Tooltip-Trigger

Link Implementation

The <sbb-link>can both be used as an anchor (<a>)
(if the href property is set) or as a button. If the <sbb-link> is placed inside another
anchor or button tag, it is internally rendered as a span in order to not break HTML functionality.

Properties

Property Attribute Description Type Default
disabled disabled Whether the button is disabled. boolean false
download download Whether the browser will show the download dialog on click. boolean undefined
form form The
element to associate the button with.
string undefined
href href The href value you want to link to (if it is not present link becomes a button). string undefined
iconName icon-name 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. Inline variant doesn't support icons. string undefined
iconPlacement icon-placement Moves the icon to the end of the component if set to true. "end" | "start" 'start'
isStatic is-static Set this property to true if you want only a visual representation of a link, but no interaction (a span instead of a link/button will be rendered). boolean false
name name The name attribute to use for the button. string undefined
negative negative Negative coloring variant flag. boolean false
rel rel The relationship of the linked URL as space-separated link types. string undefined
size size Text size, the link should get in the non-button variation. With inline variant, the text size adapts to where it is used. "m" | "s" | "xs" 's'
target target Where to display the linked URL. string undefined
type type The type attribute to use for the button. "button" | "reset" | "submit" undefined
value value The value attribute to use for the button. string undefined
variant variant Variant of the link (block or inline). "block" | "inline" 'block'

Slots

Slot Description
"icon" Slot used to display the icon, if one is set
"unnamed" Link Content

Dependencies

Used by

Depends on

Graph

graph TD;
sbb-link --> sbb-icon
sbb-alert --> sbb-link
sbb-teaser-hero --> sbb-link
style sbb-link fill:#f9f,stroke:#333,stroke-width:4px

Demo
I am a link
Block Inline
XS S M
Yes No
At the beginning At end
No Yes
White Milk Iron Charcoal Black
More examples on Storybook
Imprint Contact Cookie settings