Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProAutosaving keeps a short history of saved versions and offers "Undo" for the last change (and Redo) with Cmd/Ctrl+Z inside the field, restoring the previous saved text and saving it again. Use this when autosave can feel scary because mistakes are saved too.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Autosave overwrites the only copy and people worry about saving a mistake.
Do not use it when: For full version history across sessions, use server-side revisions; this keeps a short in-session stack.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
initial | string | sample | The saved text. |
save | (text) => Promise<void> | - | Persist the text. |
delay | number | 800 | Autosave delay. |
depth | number | 20 | Saved versions kept. |
The pattern ships with a Testing Library test (autosave-with-undo.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.