Brief, self-dismissing notifications that pop up to confirm an action without
interrupting the flow. Shown imperatively via
ScToast.show(), which stacks toasts in a corner of
the viewport.
Click a trigger — the toast appears in the top-end corner.
default is a plain inverse surface; the other statuses
add a leading Status Icon.
One stack per placement — six corners are available.
Each toast auto-dismisses after duration ms
(default 4000); 0 keeps it until dismissed.
brief confirmations and feedback after an action (“Saved”, “Copied”). For persistent page-level messages, use a Banner; for inline contextual messages, an Alert.
link (e.g. “Undo”).duration: 0 when the toast carries an action the user must take.placement per app and stick with it.status="negative" renders role="alert" (assertive); all other statuses use role="status" (polite).<button> labelled “Close notification”.link-href it’s a real <a>; without one it’s a focusable role="link" for click handling.prefers-reduced-motion.duration: 0 for anything actionable.