eQuantic.UIeQuantic.UI
Docs
Playground
GitHub
DocsOverlays
Toast
View source
1 min read
A brief, past-tense confirmation with at most one action. Never the only path to anything.
1
using eQuantic.UI.Components;
DEFAULT
Changes saved
with action
Usage
1
2
3
4
5
6
new Toast("Card removed")
{
Status = Variant.Success,
ActionLabel = "Undo",
OnAction = RestoreCard,
}
API
Prop
Type
Default
Description
Message
string
What happened, past tense. Two lines maximum.
Status
Variant
Info
Semantic role of the message.
ActionLabel
string?
null
A single action — almost always Undo.
OnAction
Action?
null
Handler for that action.
States
State
Rendering
Entering
Rise and fade over Motion.Enter
Visible
Inverse surface above the bottom inset
Swiped
Dismisses with the gesture's velocity
Accessibility
Polite live announcement; the action is exposed as a custom action and the timer pauses while focused.
When to use
Confirming something that already happened, with an undo.
Avoid
Errors that need a decision — use a Dialog.
Persistent state — use a Banner.
NOTEEvery dimension resolves through Sizing.*(SizeVariant) and the token scales — never a literal. Source: src/eQuantic.UI.Components/Toast.cs.