Skip to content
Design System
GitHub

useSlideRelease

v0.11.1Beta

Drag, threshold and spring-back logic for slide to release.

Slide to unlock

Position 0 % · unlocked 0 times

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

Usage rules

  • Drag, threshold and spring-back logic behind Slide to release.

Changelog

  • 0.11.12026-11-18reset is 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.

How to upgrade