Toast
A short, passing message about something that just happened.
API Reference
The Toast component wraps the Radix toast in an li element rendered by the toast() function. Mount Toaster once; then call toast(), toast.info(), toast.success(), toast.warning() or toast.error() with a title and these options.
| Prop | Type | Default |
|---|---|---|
title | string | — |
description | string | — |
intent | "neutral""info""success""warning""error" | "neutral" |
action | { label, onClick } | — |
closeButton | boolean | true |
icon | boolean | true |
duration | number | 5000 |
