S
SureUI

Undo Toast · SureUI

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.

npx shadcn@latest add @sureui/undo-toast
Preview Undo Toast on SureUI's site (opens in a new tab)
Loading the source for undo-toast…

undo-toast