Invisible Docs
GalerieTokens

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

Componentv1.5.0Overlayweb.applicationdesktop.shellbuilder.preview

Beispiele

Erfolg

Gespeichert
Auftrag #4711 wurde aktualisiert.

Warnung mit Aktion

Verbindung getrennt
Es wird erneut verbunden …

Fehler

Export fehlgeschlagen

Inline bleibend (persistent) mit Schließen

Speichern fehlgeschlagen
Bitte Titel angeben.

Eigenschaften

PropTypDefault
placementstring: host | inline"host"
persistentbooleanfalse
title *string—
textstring""
tonestring: info | success | warning | danger"info"
actionLabelstring""
actionIconstring: | rotate-ccw""
dismissiblebooleantrue
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

Events & Slots

Events: dismiss, action

Stellschrauben (Komponenten-Tokens)

TokenDefault
--toast-radiusvar(--shape-card)
--toast-icon-sizevar(--size-16)
--toast-accentvar(--color-status-info)
--toast-icon-materialvar(--material-icon-info)
--window-frame-radiusvar(--toast-radius)
--button-radiusvar(--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