Dot Fuse
Put it in place of a row someone just deleted. The row is struck through and a fuse is lit along its foot; Undo or ⌘Z pinches the flame out in a puff of smoke and the row comes back, and if it burns down the row crumbles to ash and onExpire is your cue to delete it for real. Pointing at it holds the flame low, and it doesn't burn while the tab is hidden.
Needs: None. One canvas over the row.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | What was removed, as the row showed it. |
| duration | number | 5000 | Time to change your mind, ms. |
| onUndo | () => void | required | Put it back. |
| onExpire | () => void | required | Gone for good: delete it on the server now. |
| undoLabel | string | "Undo" | The button's word. |
| announce | string | "Deleted" | Read out when it appears. |
| className | string | – | Class on the row. Set --mlui-fuse-pad to match your rows' padding. |
| style | CSSProperties | – | Style on the row. |