Toast
Brief notification messages that appear temporarily at screen top.
Installation
Add the component to your project using the following command:
Usage
Add the Toast component to your top-level component such as root.tsx or layout.tsx.
To create a toast, use the toastManager object.
Or use the anchoredToastManager object to create an anchored toast.
Notice that you have to pass the element ref to the anchor prop. This is required for the toast to be anchored to the element.
Examples
Variants
Toast comes in a variety of variants, each with its own color and style.
Promise
Toast can also be used to display a promise.