The ToastProvider wraps your app to provide access to useToast, allowing any component to trigger lightweight, dismissible toast messages globally.
Simple setup
Wrap your app with ToastProvider to activate toast functionality.
Advanced setup
We recommend using a Providers component to wrap your app. You can choose to display toasts at the top or bottom based on breakpoints.Use the useToast() hook to display notifications from anywhere in your app:
Toaster
The ToastProvider automatically renders a <Toaster /> under the hood, passing it the current list of toasts and a removeToast handler.