UI — overlays

Toast

Imperative toast() API backed by a module-level store — call it from event handlers, async callbacks, anywhere. Render a single <Toaster /> near the root and toasts portal to the bottom-right.

Sourcesrc/components/ui/toast.tsx

Variants

toast() renders a neutral toast; .success / .error tint the icon. Hover pauses the auto-dismiss timer.

Queueing and dismiss

Up to 3 toasts are visible at once; older ones queue. toast.clear() wipes the stack.