Zur Navigation Zum Inhalt Kontakt Menu Komponente finden Übersicht Lyne Prinzipien Grundlagen Barrierefreiheit Design System Guidelines Deutsch Français Italiano English Unsere Gestaltungsprinzipien Nutzerzentriert Wiedererkennbar Inklusiv Reduziert Ganzheitlich Selbsterklärend Aufgabenorientiert Passend SBB Markenportal Logo Digitale Uhr Nutzungsrechte Basis-Farben Funktionale Farben Off-Brand Farben Icons Fahrplan-Icons Piktogramme Über Barrierefreiheit Über diesen Guide Kontakt Weitere Informationen Product Owner User Research Interaction Design Visual Design Development Content Design Testing Was ist ein Design System?​ Designing Coding FAQ Hilfe Prozess Contribution Kontakt Übersicht Basis Komponenten Übersicht Basis Komponenten Übersicht Basis Komponenten Übersicht Releases Design Tokens Komponenten Übersicht Basis Informationen Sinn & Zweck Community Assets Anleitung Power-Apps Digitale Werbebanner SAP App Icons Card-Link 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
active active public boolean false Whether the card is active.
href href public string | undefined The href value you want to link to.
target target public LinkTargetType | string | undefined Where to display the linked URL.
rel rel public string | undefined The relationship of the linked URL as space-separated link types.
download download public boolean | undefined Whether the browser will show the download dialog on click.

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.
Playground
Buy a ticket%from CHF92.50Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec porttitor blandit odio, ut blandit libero cursus vel. Nunc eu congue mauris. Quisque sed facilisis leo. Curabitur malesuada, nibh ac blandit vehicula, urna sem scelerisque magna, sed tincidunt neque arcu ac justo.
Farbe Milk White Grössen XS S M L XL XXL Aktiv Nein Ja Badge Nein Ja Hintergrund White Milk Iron Charcoal Black
Komponente finden

Lyne

Impressum Kontakt Cookie Einstellungen