Past 85% releases, short of that springs back in 200 ms; locked for viewers; hold 2 s on the keyboard instead.
Stopped
Install
npx shadcn add @syncrobotic/slide-to-release Also installs: lucide-react, @syncrobotic/cn, @syncrobotic/use-slide-release
Overview
Releases a stopped robot with a deliberate slide: past 85% it releases, short of that it springs back.
When to use
- Releasing an emergency stop, where a tap would be too easy in a panic.
Use something else
- Routine confirmations: Alert dialog.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Release states
Usage rules
- Letting go past 85% releases; short of that the thumb springs back in 200 ms.
- Viewers can see it but cannot release.
- Keyboard and switch control: hold Enter or Space for 2 s.
- If the robot does not release, set
failed: the thumb goes back and the label says to slide again. Never leave it on Releasing….
Changelog
- 0.11.12026-11-18
failedandfailedLabel: when the robot does not release, the thumb goes back and the label says to slide again, instead of staying on Releasing…. The thumb follows--h-thumb, so it fills the track in every density. - 0.5.02026-11-17First versioned release. Earlier history is in CHANGELOG.md.