Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA list where Delete removes an item at once, shows an undo bar with the item's name, restores it in its old position and stops the timer while the bar has focus. Use this when deleting is frequent and cheap to reverse, so confirming first would only slow people down.
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.
Use it when deleting is frequent and cheap to reverse, so confirming first would only slow people down.
Do not use it for deletes that cannot be reversed on the server or that have legal effect.
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[] | required | Items. |
duration | number | 6000 | How long the undo bar stays. |
onCommit | (item: string) => void | - | Called when the undo window closes and the delete is final. |
onCommit only after the window closes.The pattern ships with a Testing Library test (undo-after-delete.test.tsx) that drives it through roles and the keyboard.