Component packs › Pressworks › Stop Button
A mushroom head that latches down for destructive actions and only lets go when you twist it, then pops back on its spring.
Stop Button is a button from Pressworks, a component pack with 8 buttons: Eight buttons, each a different real mechanism you can feel. Price: $2 for the whole pack.
Built with: push to latch, twist to release, keyboard twist.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | Engraved on the collar and used as the accessible name. | |
hint | string | Status line while latched. | |
stopped | boolean | Start latched down. | |
disabled | boolean | ||
onStop | () => void | Pushed and latched. | |
onRelease | () => void | Twisted and released. | |
theme | 'light' | 'dark' | ||
size | number | Scale factor. 1 = 240 × 214 px. | |
autoplay | number | false | Showcase mode: pushes, then twists free, every N ms while visible. |
readonly stopped: booleanstop(): voidrelease(): void: Twists the head free.setDisabled(disabled: boolean): voiddestroy(): voidimport StopButton from './StopButton';
<StopButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.