Installation
Run the following command:
Add the Toaster component
Usage
The useToast
hook returns a toast
function that you can use to display a toast.
To display multiple toasts at the same time, you can update the TOAST_LIMIT
in use-toast.tsx
.
Examples
Simple
With title
With Action
Destructive
Use toast({ variant: "destructive" })
to display a destructive toast.