Hooks · hook · 1K
usePressRepeat
Press-and-hold auto-repeat for scroll arrows and steppers: start(action) runs the action at once, again after a short delay and then on a steady beat until stop() or unmount; return false from the action to stop at the end of the range.
Install
pnpm dlx shadcn@latest add @s7ui/use-press-repeatInfo
- Files:
- hooks/use-press-repeat.ts
- Uses:
- —
- Packages:
- —