Overlays & confirmation
useToast
Shows toast notifications from anywhere in your app, with variant shortcuts and a promise helper that swaps a loading toast for success or error. Use it for feedback that shouldn’t interrupt the page.
Toasts you show from code. Call toast(title, options) from anywhere, even outside a component. toast.success, .error, .warning, .info and .loading set the variant for you. toast.promise(input, messages) shows a loading toast at once, then swaps it for a success or error toast when the promise settles, with no dismiss() call. Toasts render in a <Toaster/>, which you mount once at the app root.
Install
import { toast, useToastQueue } from 'vael-ui'