Component packs › Pressworks › Arcade Button

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.

Arcade Button props

PropTypeDefaultDescription
labelstringText printed on the cap.
ariaLabelstringthe labelAccessible name; defaults to the label.
disabledboolean
onPress() => voidCalled 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].
sizenumberScale factor. 1 = 220 × 170 px.
autoplaynumber | falseShowcase mode: presses itself every N ms while visible.

Methods on the ref

Use it in React

import ArcadeButton from './ArcadeButton';

<ArcadeButton />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Pressworks

Good for: Buttons.