The toast is used to show alerts on top of an overlay. The toast will close itself when the close button is clicked, or after a timeout — the default is 5 seconds. The toast component is used to give feeback to users after an action has taken place.
Toasts can be configured to appear at either the top or the bottom of an application window, and it is possible to have more than one toast onscreen at a time.
Display a custom component instead of the default Toast UI.
Toasts can be closed imperatively, individually (via the
method) or all together (via the
closeAll instance method).
position prop you can adjust where your toast will be popup from.
|The title of the toast.|
|Callback function to close the toast.|
|The description of the toast.|
|The status of the toast.|
|Duration before dismiss in milliseconds, or |
|Position the toast will popup out from.|
|Callback function to display a custom toast.|