Toast (Notification)
Renamed from Notification in Gravity 12.
The Toaster
component provides a notification system using toast messages. It uses a provider to manage and display toast notifications with optional actions and icons.
You can show a notification from anywhere in your application using the ViewContext.
Preview
Usage
Parameters
Notes
The
Toaster
component uses theuseToast
hook to manage the state of the toasts.The component relies on
Toast
,ToastClose
,ToastDescription
,ToastProvider
,ToastTitle
, andToastViewport
from./toast.jsx
.For more details, refer to the Shadcn Toast documentation.
Last updated