Timed undo

controlsFreeMIT

A delete button that counts down a few seconds and can be undone before anything happens.

Adapted from Watermelon UI (MIT) and rewritten with keyboard support, labels and reduced motion.

npx shadcn@latest add https://mikkelmanniche.dk/lab/r/timed-undo.json
Width

Preview

The preview could not load.

Live demo in the dark theme.

Details

Files

  • timed-undo.tsx