Toast (Einblendung)
Flüchtige Meldung: Ton-Akzent (info/success/warning/danger), Titel, Text, optionaler Aktions-Knopf, Schließen — reiner DARSTELLER; Stapeln, Timeouts und Verhalten besitzt der Host (Desktop-NotificationHost bzw. Runtime-Service). Die Region-Klasse .invisible-toast-region (aria-live) liefert dieses CS
Nutzt: ui.icon ui.featured-icon
Beispiele
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| placement | string: host | inline | "host" | Platzierung |
| persistent | boolean | false | Bleibt stehen (inline) |
| title * | string | — | Titel |
| text | string | "" | Text (optional) |
| tone | string: info | success | warning | danger | "info" | Ton |
| actionLabel | string | "" | Aktions-Knopf (leer = keiner) |
| actionIcon | string: | rotate-ccw | "" | Aktionssymbol (leer = Text) |
| dismissible | boolean | true | Schließbar |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| 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 | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Events & Slots
Events:
⚡ dismiss⚡ action — im Surface per on: {<event>: {action, params}} verdrahtbar.
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 |
|---|---|
--toast-radius | var(--shape-card) |
--toast-icon-size | var(--size-16) |
--toast-accent | var(--color-status-info) |
--toast-icon-material | var(--material-icon-info) |
--window-frame-radius | var(--toast-radius) |
--button-radius | var(--shape-control) |
Genutzte Design-Tokens
LLM-Notizen
component.toast
Flüchtige Meldung (Ton-Akzent info/success/warning/danger, Titel, Text, optionale Aktion, Schließen) — reiner Darsteller. Stapeln/Timeouts/Verhalten besitzt der Host (data-toast-dismiss/data-toast-action); die Stapel-Region .invisible-toast-region (fixed, oben rechts) liefert dieses CSS mit. Sichtbar wird ein Toast über --visible.
Beispiel-Node
{ "definition": "component.toast", "props": { "title": "Gespeichert", "tone": "success" } }