Unsaved-changes bar that names every dirty field (with per-field revert), guards the tab close, saves on Ctrl/⌘+S and asks twice before Discard; editing a field back to its saved value makes it clean again.
npx shadcn@latest add @bollard/unsaved-changes-barunsaved-changes-bar