Undo toast

Pro

A stack of undo toasts: a draining bar is each toast's real timer, hovering fans the deck out and pauses it, toasts flick away with velocity and promise toasts spin into a drawn tick.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • The bar is the timer, so pausing never drifts
  • Flick to dismiss with velocity
  • toast, promise, update, dismiss and undo through a provider
  • Ctrl or Cmd+Z undoes the newest toast
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/undo-toast

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/undo-toast.tsx.

More Pro components

Notification center

A lock-screen notification stack: cards pile up per app, fan out with a staggered spring, swipe away or uncover actions, new ones drop in on top and clear all sweeps them off.

Pro

Live cursors

Multiplayer presence for any surface: named cursors glide on spline paths rebuilt from sparse updates, with chat bubbles, reaction bursts, selection boxes, an avatar stack and a follow camera.

Pro

Pull to refresh

A scroll area you pull past its top on a rubber band: a pill hangs on an elastic tether and draws its ring with the distance, the tether snaps at the line, and it spins until onRefresh resolves, then shows a check.

Pro