Component packs › Pressworks › Arcade Button
A translucent cap on a deep plunger: it sinks 20 px into the bezel, tilts toward where you press, lights from inside and springs back past its rest.
Arcade 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: deep plunger travel, off-centre tilt, return overshoot.
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 | Text printed on the cap. | |
ariaLabel | string | the label | Accessible name; defaults to the label. |
disabled | boolean | ||
onPress | () => void | Called when a press is released over the button (or Space / Enter is released). | |
theme | 'light' | 'dark' | it follows the nearest [data-theme] | Force a theme; by default it follows the nearest [data-theme]. |
size | number | Scale factor. 1 = 220 × 170 px. | |
autoplay | number | false | Showcase mode: presses itself every N ms while visible. |
press(): void: Presses and releases the button (runs onPress).setDisabled(disabled: boolean): voiddestroy(): voidimport ArcadeButton from './ArcadeButton';
<ArcadeButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.