Autosaves to localStorage and, on reopen, offers the draft with a field-by-field preview that keeps any value the server changed since, unless you tick it. Drafts expire after 7 days by default.
npx shadcn@latest add @bollard/draft-restoredraft-restore