Theme: ← Übersicht Tokens

Hero

Große Einstiegs-Section mit Titel, Untertitel und Aktions-Slot

Blocks v1.1.2 Einstieg Website section.hero

Beispiele

Standard mit Aktionen und Media-Card

Ein Definitionsmodell für alle Oberflächen

Website, Shop, App, Desktop und E-Mail aus derselben Registry — gerendert über Target-Profile.

Section → Component → Element

Diese Karte steckt im media-Slot des Hero.

Brand-Ton, zentriert

Der Kunde wählt Props und Tokens.

Keine freien Klassen, kein freies CSS — das System bleibt kontrollierbar.

Eigenschaften

PropTypDefaultBuilder-Label
title *string—Titel
subtitlestring""Untertitel
alignstring: start | center"start"Ausrichtung
tonestring: default | brand"default"Ton
spacingstring: none | sm | md | lg | xl"none"Eigenabstand
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | container | full"standard"Breite (full = Band aus dem Container, container = im Container)
heightstring: standard | half | full"standard"Hoehe (full = Bildschirmhoehe, Inhalt zentriert)
backgroundImagestring""Hintergrundbild (https-URL oder /pfad; leer = keins)
backgroundDimstring: standard | light | medium | strong"standard"Bild abdunkeln (Lesbarkeit; standard = aus)
backgroundFixedbooleanfalseBild steht fest beim Scrollen (Parallax)
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""Anker-ID (Sprungziel, z. B. fuer Nav-Links)

* Pflicht-Prop

Events & Slots

Slot actions: akzeptiert ui.button

Slot media: akzeptiert ui.*, component.card, layout.*

Stellschrauben (Komponenten-Tokens)

Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

TokenDefault
--hero-backgroundvar(--color-surface-default)
--hero-title-colorvar(--color-text-default)
--hero-subtitle-colorvar(--color-text-muted)

Genutzte Design-Tokens

border.hairlinecolor.action.on-primarycolor.action.primarycolor.border.defaultcolor.surface.defaultcolor.text.defaultcolor.text.mutedcontainer.mdfont.family.defaultleading.baseleading.tightradius.surfacesize.12size.4size.6size.8text.3xltext.lgweight.bold

LLM-Notizen

section.hero

Große Einstiegs-Section mit Titel, Untertitel und Slots für Aktionen und Medien.

Wann nutzen

  • Aufmacher, bei dem Buttons und Media als eigene Kind-Nodes (Slots) frei bestückt werden sollen.
  • Für fertig verdrahtete CTAs/Plattform-Leiste ohne Slots eher section.hero-centered.

Wichtige Props

  • title * = Titel (max. 200)
  • subtitle = Untertitel
  • align = start | center (Default start)
  • tone = default | brand (Default default)
  • spacing = Eigenabstand none | sm | md | lg | xl (Default none)

Slots

  • actions = bis zu 3 ui.button-Nodes (CTAs)
  • media = ein Media-Node (ui.*, component.card oder layout.*)

Beispiel-Node

{ "definition": "section.hero", "props": { "title": "Willkommen", "subtitle": "Der einfachste Einstieg.", "align": "center", "tone": "brand" }, "slots": { "actions": [{ "definition": "ui.button", "props": { "label": "Loslegen" } }], "media": [{ "definition": "ui.image", "props": { "src": "/hero.png" } }] } }

Hinweise

  • actions nimmt maximal 3, media maximal 1 Node.