Leerzustand (Empty State) — component.empty-state
Zentrierter Leerzustand (Untitled-UI-Muster): Icon-Fläche, Titel, Text, Primär- und Sekundär-Aktion — für leere Listen, Suchergebnisse, Erststarts. Titel-Ebene 2, 3 oder 4; Standard 3 bleibt erhalten. Optional ctaHref/cta2Href: Aktion als echter Link in Button-Optik. 1.7.0 (opt-in): size hero = gros
Beispiele
Leere Suche mit zwei Aktionen
Keine Projekte gefunden
Deine Suche „Q3-Report" ergab keine Treffer. Versuche einen anderen Begriff oder lege ein neues Projekt an.
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
size | string: default | hero | "default" |
backdrop | string: | aurora | "" |
eyebrow | string | "" |
icon | string | "search" |
titleFont | string: | hand | "" |
title * | string | — |
headingLevel | number: 1 | 2 | 3 | 4 | 3 |
text | string | "" |
ctaLabel | string | "" |
cta2Label | string | "" |
ctaHref | string | "" |
ctaTrigger | string | "" |
cta2Href | string | "" |
note | string | "" |
appearance | string: plain | panel | "plain" |
iconTone | string: neutral | primary | accent | success | warning | danger | info | series-1 | series-2 | series-3 | series-4 | series-5 | series-6 | series-7 | series-8 | "neutral" |
spacing | string: default | none | sm | md | lg | xl | "default" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Slot actions: akzeptiert ui.*, component.*, layout.*
Slot default: akzeptiert ui.*, component.*, layout.*, section.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--empty-state-action-on-primary | var(--color-action-on-primary) |
--empty-state-action-on-secondary | var(--color-action-on-secondary) |
--empty-state-action-primary | var(--color-action-primary) |
--empty-state-action-primary-hover | var(--color-action-primary-hover) |
--empty-state-action-secondary | var(--color-action-secondary) |
--empty-state-action-secondary-hover | var(--color-action-secondary-hover) |
--empty-state-border-strong | var(--color-border-strong) |
--empty-state-elevation-control | var(--elevation-control) |
--empty-state-radius-control | var(--radius-control) |
--empty-state-text-default | var(--color-text-default) |
--empty-state-text-muted | var(--color-text-muted) |
--empty-state-panel-surface | var(--color-surface-default) |
--empty-state-panel-border | var(--color-border-default) |
--empty-state-panel-radius | var(--radius-surface) |
--empty-state-panel-shadow | var(--elevation-raised) |
--empty-state-panel-glow | var(--display-accent-color, var(--color-accent)) |
--empty-state-aurora-a | var(--color-chart-2, var(--color-action-primary)) |
--empty-state-aurora-b | var(--color-chart-3, var(--color-action-primary)) |
--empty-state-aurora-c | var(--color-chart-5, var(--color-action-primary)) |
Genutzte Design-Tokens
border.hairline color.accent color.action.on-primary color.action.on-secondary color.action.primary color.action.primary-hover color.action.secondary color.action.secondary-border color.action.secondary-hover color.border.default color.border.strong color.chart.2 color.chart.3 color.chart.5 color.surface.default color.text.default color.text.muted container.sm control.gap control.height control.pad-x duration.fast duration.slow easing.standard elevation.control elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default font.family.display font.family.hand font.hand-scale leading.base leading.loose leading.tight radius.control radius.full radius.surface size.1 size.10 size.12 size.2 size.3 size.4 size.5 size.6 size.8 text.2xl text.2xs text.3xl text.5xl text.lg text.md text.sm text.xl text.xs tracking.wide weight.medium weight.regular weight.semibold