Hooks & Utilities
v1.0.0Added in 1.0.0
A resend or retry timer: wait N seconds before a code can be sent again, exact after the tab sleeps and kept across reloads.
Press Resend code: the button locks and counts down (0:30, 0:29...) while the ring fills, then unlocks. Reload the page with a persist key and the wait continues where it was. Reset stops it at once. The label updates once a second, on the second.
npx wingo-ui@latest add use-cooldownPro item: the CLI needs a Pro account. See plans
We sent a 6 digit code to (555) 123-4567.
You can resend the code
remaining=0 active=false persistKey=""