Feedback
Toaster
Renders the notifications created by toast(). Mount it once, anywhere in your app.
Install
import { Toaster } from 'vael-ui'Playground
bottom-right
import { toast, Toaster } from 'vael-ui'
<Toaster position="bottom-right" :max-visible="4" :gap="10" />
// anywhere in your app
toast('Saved changes')
toast.success('Upload complete')Examples
Toast
Sonner-style: no hooks, no context. toast() is a plain function callable from anywhere, rendered by the single <Toaster /> mounted once in App.vue. Hover the stack to pause every timer with the exact remaining time preserved (not a restart) and expand it into a full list; switching tabs does the same. Drag a card left, right, or toward its anchored edge to swipe-dismiss it.
Variants
Promise-based
toast.promise renders a loading toast immediately, then swaps its content once the promise settles, success or error.
Actions and stacking
A toast can carry a trailing action button of its own. Fire several in a row to see the stack grow, hover to pause every timer at once.
Code