A toast meant to carry a button.
A toast in the state given by its type option, success when none is given.
promise(promise, options)
Promise<T>
Loading while the promise is pending, then success, action, or error.
Clear every toast, or only those at one position.
Like sileo on the web, every toast shares one id. A new toast does not stack on the last one; it morphs the visible toast into the new content.
The body of the card. A string is wrapped in Text; any node is rendered as given.
Override the Toaster’s position.
duration
number | null
= 6000
Milliseconds before it dismisses itself. null keeps it until dismissed.
Replaces the state icon. An element without a color prop is given the state color.
The surface color. Overrides the theme.
Corner radius, which also sets how far the goo blurs.
appearance
'solid' | 'glass'
Overrides the Toaster’s appearance.
Style objects for title, description, badge, button and buttonText.
autopilot
boolean | { expand, collapse }
= true
Open and close the card on a timer. false leaves it to the reader.
One button, the web shape.
buttonLayout
'row' | 'column'
= 'row'
Side by side, or stacked.