E-stop

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-e-stop

About this component

An emergency stop with a hinged safety cover: the first press lifts the cover, the second slams the mushroom head down where it latches, and a press on the latched head twists it free before the cover drops shut again.

Dependencies
None
Difficulty
Advanced
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Click
  • State change
  • 3D

Techniques4

  • State machine
  • Perspective
  • 3D transform
  • SVG

Accessibility

Keyboard and screen readers

A native button with aria-pressed for the latched state and a label that says what the next press does (lift the cover, stop, twist to release).

Reduced motion

The cover and head switch states without animating.

Use it in anything you build, commercial and client work included. Licence

More buttons

See all
FilmGet code
FlashGet code
FocusGet code
GlowstickGet code