Component packs › Floors › Call Button
Press the call button and it sinks into its bezel, its ring stays lit while the display counts the car floor by floor to you, then the arrow blinks on arrival.
Call Button is a button from Floors, a component pack with 6 lift controls: Pagination, dialogs, steppers and menus that work like a lift. Price: $2 for the whole pack.
Built with: lit ring, car travel countdown, arrival lantern.
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 |
|---|---|---|---|
direction | 'up' | 'down' | 'both' | Which buttons the station has. | |
floor | number | Your floor (0 = G). | |
carAt | number | Where the car starts. | |
top | number | Highest floor, used by the showcase. | |
speed | number | Seconds per floor of travel. | |
label | string | Accessible name prefix, e.g. "Call lift". | |
onCall | (dir: 'up' | 'down') => void | ||
onArrive | (dir: 'up' | 'down') => void | ||
autoplay | number | false | Showcase mode: calls the car every N ms while visible. |
readonly waiting: 'up' | 'down' | nullreadonly carAt: numbercall(dir: 'up' | 'down'): voiddestroy(): voidimport CallButton from './CallButton';
<CallButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.