Hold to delete
A hold to delete button for React that asks for a long press before anything is removed. The pill fills while you hold it, the bin starts to shake near the end, and letting go early drains it back. Set the hold time, the rewind speed and the shake. A safer pattern for destructive actions.
Press · included with Bencho Pro
Hold to delete props
| Name | Type | Default | Description |
|---|---|---|---|
hold | number | 1.5s | How long it has to be held. From 0.6 to 3s. |
rewind | number | 60 | How fast it drains when let go. From 0 to 100. |
corner | number | 20px | Corner. From 0 to 20px. |
Part of Pro. Use it anywhere, just don't resell it. Licence