undoToast(message) shows a Sonner toast with an Undo button. It resolves true when the toast closes and false if Undo is clicked, so run the action only on true.
undoToast(message) shows a Sonner toast with an Undo button. It resolves true when the toast closes and false if Undo is clicked, so run the action only on true.
Files · 2
Dependencies
npm packages
sonner
Registry items
button
sonner
Registry Items
undo-toast
Configuration
Name
undo-toast
Type
Library
Description
undoToast(message) shows a Sonner toast with an Undo button. It resolves true when the toast closes and false if Undo is clicked, so run the action only on true.