Skip to content
English
Don't know what it's called61 / 71

Undo toast

What it's calledUndo toastsnackbar with undoGlossary

What goes wrong

Asking "Are you sure?" before every archive adds a dialog and a second click to the most common action, and people learn to confirm without reading.

The fix

Do it at once and offer Undo in a toast for a few seconds; keep confirmation for what cannot be undone.

Tell your AI

For actions that can be reversed, act immediately and show a toast at the bottom with the result and an Undo button for 6 seconds, rising var(--ds-distance-lg) (16px) over var(--ds-duration-base) (240ms) with var(--ds-ease-out) as a var(--ds-text) pill with var(--ds-surface) text; install the LayQ component toast-stack (/registry/v1/controls-toast-stack.json) and pass Undo as its action.

  • --ds-distance-lg16px
  • --ds-duration-base240ms
  • --ds-ease-out
  • --ds-text
  • --ds-surface
Why AI-generated UIs all look the same: 12 rules that fix it

Receipts to file

May · 4 receipts

Archived4
  • GroceriesMay 9€42.18
  • Hotel, 2 nightsMay 11€312.00
  • Train ticketsMay 12€27.40
  • Team lunchMay 14€86.50

2 clicks and a dialog, every single time