Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA long message is kept in local storage as you type; when you come back it offers "Restore draft from 14:32" or "Discard", and the draft is removed after a successful send. Use this when a closed tab, crash or navigation must not cost people their writing.
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.
People write more than a couple of sentences in a form and a refresh would lose it (support replies, applications, posts).
Do not use it when: Do not store sensitive data in local storage. Draft restore is for content that is fine to keep on the device.
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 | Description |
|---|---|---|
storageKey | string | The local storage key. Use one per form and per user. |
send | (text) => Promise<void> | Send the message. After success the draft is deleted. |
status alert with two real buttons and the time of the draft; it appears after mount, so there is no hydration mismatch, and the textarea is not filled behind the person's back.The pattern ships with a Testing Library test (draft-restore-from-storage.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.