Zur Navigation Zum Inhalt Kontakt Menu Trova un componente Descrizione generale Lyne Principi Base Accessibilité Sistema di design Guidelines Deutsch Français Italiano English I nostri principi di design Soluzioni focalizzate sull’utente Riconoscibilità Inclusione Riduzione Olistico Autoesplicativo Orientamento all’attività Adeguatezza Portale della marca FFS Logo Orologio digitale Diritti di utilizzazione Colori die base Colori funzionali Colori Off Brand Icone Icone dell'orario Pittogrammi Informazioni sull’accessibilità Über diesen Guide Contatti Letture consigliate Product Owner User Research Interaction Design Visual Design Development Content Design Testing Introduzione Base Componenti Senso & scopo Community Assets Istruzioni What is a design system? Designing Coding FAQ Aiuto Processo Contribution Contatto Introduzione Base Componenti Overview Releases Design Tokens Komponenten Introduzione Base Informazioni Power-Apps Banner pubblicitari digitali SAP Icone delle app Questa pagina non è disponibile nella lingua desiderata. Lingue disponibili Deutsch English Card-Link Info

Was macht die Komponente?

Sie ist Teil der Card-Komponente.

Wann soll die Komponente eingesetzt werden?

  • Nur innerhalb der Card-Komponente.

Übergeordnete Komponenten

Card
Anatomie
Anatomie der Komponente
Nummer Typ Beschreibung Optional Hinweis
1 Slot Beliebiger Inhalt erlaubt Nein
2 Komponente sbb-card-badge Ja
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.
Impressum Contatto Impostazioni dei cookie