useToast

App-wide notifications. Mount AppToast once (App.vue) with the toasts ref. Call success, error, warning or info from anywhere. At most five show at once, a toast can carry one action (Undo), and promise() turns a loading toast into the outcome.

Install: pnpm add-composable useToast

Interactive board

Trigger various notification types to experience the smooth animation and auto-dismissal logic.

API