v0.1 public beta early access on GitHub
Home / Components / toast

ToastAndroid

Stacked notifications with swipe dismiss and actions.

$ npx lumioui add toast
import { useToast, ToastProvider } from "@/components/ui/toast/toast";
Parts: useToast · ToastProvider
Props5
children React.ReactNode
position? ToastPosition Where toasts appear. Default "top".
defaultDuration? number Auto-dismiss duration in ms. 0 = manual dismiss only. Default 4000.
limit? number Max simultaneous toasts. Older ones are dismissed with an exit animation. Default 4.
maxVisible? number Stack levels that peek out behind the front toast. Deeper toasts stay queued (timers running) until a slot frees. Default 3.
Toast — Actionaction.tsx
toast/variants/action.tsx open

Stacked notifications with swipe dismiss and actions.

Toast — Loadingloading.tsx
toast/variants/loading.tsx open

Stacked notifications with swipe dismiss and actions.

Toast — Variantsvariants.tsx
toast/variants/variants.tsx open

Stacked notifications with swipe dismiss and actions.