Unsaved Guard – shadcn/ui Component by hirael | shadcnregistry
Unsaved Guard
component
Unsaved-changes guard: a root provider plus a useUnsavedGuard hook. Warns before reload, tab close and in-app link navigation, and returns a guard(proceed) to wrap programmatic navigation in a confirm dialog.