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 What is a design system? Designing Coding FAQ Aiuto Processo Contribution Contatto Introduzione Base Componenti Introduzione Base Componenti Introduzione Base Componenti Overview Releases Design Tokens Komponenten Introduzione Base Informazioni Senso & scopo Community Assets Istruzioni Power-Apps Banner pubblicitari digitali SAP Icone delle app Questa pagina non è disponibile nella lingua desiderata. Lingue disponibili Deutsch English Teaser-Hero Implementation

The sbb-teaser-hero is a component with a background image and an action call within a panel;
it should be an eye-catcher and should have an emotional effect on the user with its large image component.

Slots

It is possible to provide the panel label via an unnamed slot,
while the link text can be provided using the link-content slot or the linkContent property;
similarly, the background image can be provided using the image slot or the imageSrc property.

<sbb-teaser-hero
  href="https://www.sbb.ch"
  link-content="Find out more"
  image-src="https://path-to-source"
  image-alt="SBB CFF FFS Employee"
>
  Break out and explore castles and palaces.
</sbb-teaser-hero>

<sbb-teaser-hero href="https://www.sbb.ch">
  Break out and explore castles and palaces.
  <sbb-image slot="image" image-src="https://path-to-source" alt="SBB CFF FFS Employee"></sbb-image>
  <span slot="link-content">Find out more</span>
</sbb-teaser-hero>

Accessibility

The description text is wrapped into an p element to guarantee the semantic meaning.

Avoid slotting block elements (e.g. div) as this violates semantic rules and can have negative effects on screen readers.

Properties

Name Attribute Privacy Type Default Description
linkContent link-content public string | undefined Panel link text.
imageSrc image-src public string | undefined Image src will be passed to sbb-image.
imageAlt image-alt public string | undefined Image alt text will be passed to sbb-image.
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 text content to the panel
link-content Link content of the panel
image The background image that can be a sbb-image
Beispiele
Default Teaser
Open In New Window
With Slots
HTML-Markup kopiert.
Playground
Break out and explore castles and palaces.
Link Label Kurz Zu lang Hintergrund White Milk Iron Charcoal Black
Trova un componente

Lyne

Impressum Contatto Impostazioni dei cookie