Toast (Einblendung) — component.toast
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
Beispiele
Erfolg
Warnung mit Aktion
Fehler
Inline bleibend (persistent) mit Schließen
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
placement | string: host | inline | "host" |
persistent | boolean | false |
title * | string | — |
text | string | "" |
tone | string: info | success | warning | danger | "info" |
actionLabel | string | "" |
actionIcon | string: | rotate-ccw | "" |
dismissible | boolean | true |
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
Events: dismiss, action
Stellschrauben (Komponenten-Tokens)
| 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
border.hairline color.status.danger color.status.info color.status.success color.status.warning color.surface.default color.surface.page color.surface.sunken color.text.default color.text.muted container.sm duration.fast easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default layer.toast leading.base leading.tight size.1 size.10 size.12 size.16 size.2 size.20 size.3 size.32 size.4 size.6 size.8 text.lg text.md text.sm text.xs weight.semibold