Use slide release track
Install
npx shadcn add @syncrobotic/use-slide-release Also installs: @syncrobotic/feedback
Overview
A hook with the drag, threshold and spring-back logic behind slide to release.
When to use
- Building another slide-to-confirm control.
Use something else
- Releasing a stop: Slide to release, which uses it.
Usage rules
- Drag, threshold and spring-back logic behind Slide to release.
Changelog
- 0.11.12026-11-18
resetis stable, so an effect can depend on it. - 0.11.02026-11-18The release pulse comes from
feedback(release), so an app can turn touch off in one place. - 0.7.02026-11-17Fix: the thumb follows the finger 1:1. It used to speed up mid-drag and finish on its own.