Hero
Große Einstiegs-Section mit Titel, Untertitel und Aktions-Slot
Beispiele
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.
Der Kunde wählt Props und Tokens.
Keine freien Klassen, kein freies CSS — das System bleibt kontrollierbar.
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| title * | string | — | Titel |
| subtitle | string | "" | Untertitel |
| align | string: start | center | "start" | Ausrichtung |
| tone | string: default | brand | "default" | Ton |
| spacing | string: none | sm | md | lg | xl | "none" | Eigenabstand |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | container | full | "standard" | Breite (full = Band aus dem Container, container = im Container) |
| height | string: standard | half | full | "standard" | Hoehe (full = Bildschirmhoehe, Inhalt zentriert) |
| backgroundImage | string | "" | Hintergrundbild (https-URL oder /pfad; leer = keins) |
| backgroundDim | string: standard | light | medium | strong | "standard" | Bild abdunkeln (Lesbarkeit; standard = aus) |
| backgroundFixed | boolean | false | Bild steht fest beim Scrollen (Parallax) |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | 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.
| Token | Default |
|---|---|
--hero-background | var(--color-surface-default) |
--hero-title-color | var(--color-text-default) |
--hero-subtitle-color | var(--color-text-muted) |
Genutzte Design-Tokens
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= Untertitelalign=start|center(Defaultstart)tone=default|brand(Defaultdefault)spacing= Eigenabstandnone|sm|md|lg|xl(Defaultnone)
Slots
actions= bis zu 3ui.button-Nodes (CTAs)media= ein Media-Node (ui.*,component.cardoderlayout.*)
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
actionsnimmt maximal 3,mediamaximal 1 Node.