Component packs › Pressworks › Call Button
A lift call button on brushed steel: the light ring fills round from the exact point you pressed and stays lit until done().
Call 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: ring fills from the touch point, spun-metal face, braille legend.
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 legend on the plate. | |
ariaLabel | string | the label | Accessible name; defaults to the label. |
pendingText | string | Status text under the plate while the request is open. | |
doneText | string | Status text after done(). | |
glyph | 'up' | 'down' | 'bell' | Glyph lit inside the button. | |
disabled | boolean | ||
onCall | () => void | Called once when a request is registered. | |
autoDone | number | Lights out by itself after N ms (0 = stays lit until done()). | |
theme | 'light' | 'dark' | ||
size | number | Scale factor. 1 = 150 × 212 px plate. | |
autoplay | number | false | Showcase mode: calls, then arrives, every N ms while visible. |
readonly called: booleancall(): void: Registers a call, as if pressed.done(): void: The request is served: the ring dims.setDisabled(disabled: boolean): voiddestroy(): voidimport CallButton from './CallButton';
<CallButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Buttons.