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

What does the component do?

It is part of the card component.

When should the component be used?

  • Only within the card component.

Parent Components

Card
Anatomy
Anatomy of the component
Number Type Description Optional Info
1 Slot Beliebiger Inhalt erlaubt No
2 Component sbb-card-badge Yes
Implementation

The sbb-card-link is the component used to turn a sbb-card into a link.

<sbb-card-link href="https://www.sbb.ch">Check all the wonderful trips available.</sbb-card-link>

Link properties

The component is internally rendered as a link,
accepting its associated properties (href, target, rel and download).

Accessibility

It's important that a descriptive message is being slotted into the unnamed slot of sbb-card-link
as it is used for search engines and screen-reader users.

<sbb-card-link href="https://www.sbb.ch">Buy a half-fare ticket now</sbb-card-link>

Properties

Name Attribute Privacy Type Default Description
accessibilityLabel accessibility-label public string | undefined This will be forwarded as aria-label to the inner anchor element.
active active public boolean false Whether the card is active.
download download public boolean | undefined Whether the browser will show the download dialog on click.
href href public string | undefined The href value you want to link to.
rel rel public string | undefined The relationship of the linked URL as space-separated link types.
target target public LinkTargetType | string | undefined Where to display the linked URL.

Slots

Name Description
Use the unnamed slot to add a descriptive label / title of the link (important!). This is relevant for SEO and screen readers.
Imprint Contact Cookie settings