Skip to content
Design System
GitHub

Slide to release

v0.11.1Beta

Past 85% releases, short of that springs back in 200 ms; locked for viewers; hold 2 s on the keyboard instead.

Slide to release7F3A

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

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

After stop all
Slide to release all3 stopped
Locked for viewers
Only operators can release

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-18failed and failedLabel: 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.

How to upgrade