Toast
A transient notification capsule. Render a <Toast> directly, or drive them imperatively: mount a <ToastProvider> near your app root and call toast(...) from the useToast() hook to enqueue auto-dismissing toasts that stack over the app.
On the web and iOS the toast is Dark Factory's pill: the same deep fill in every palette and scheme, a bold white message, a pill with no description (a long message wraps inside the capsule) and a rounder card once a description sits under the message, with the intent glyph, the action and the dismiss in inks that read on the dark fill. Android keeps the Material 3 snackbar on the same fill.
iOS
Android
Web
tsx
Default
Rendered directly
Success
Destructive
Warning
With an action
Dismissible, informational
Toast is usually driven imperatively: mount a <ToastProvider> near your app root, then call the toast(...) handle from useToast() to enqueue an auto-dismissing capsule that floats over the app. Press the button to fire one. (AppScreen is just this demo's stand-in for your app root, so the toast has a screen to float over.)
Props
Do & Don’t
One short message
Don’t
Don't crowd a toast with long paragraphs or more than one action; a toast is a glance, not a dialog.
Do
Copied to clipboard
Keep a toast to one short, plain message (with an optional one-line description), and pair a destructive or success intent with the matching message.