Component packs › Floors › Call Button

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.

Call Button props

PropTypeDefaultDescription
direction'up' | 'down' | 'both'Which buttons the station has.
floornumberYour floor (0 = G).
carAtnumberWhere the car starts.
topnumberHighest floor, used by the showcase.
speednumberSeconds per floor of travel.
labelstringAccessible name prefix, e.g. "Call lift".
onCall(dir: 'up' | 'down') => void
onArrive(dir: 'up' | 'down') => void
autoplaynumber | falseShowcase mode: calls the car every N ms while visible.

Methods on the ref

Use it in React

import CallButton from './CallButton';

<CallButton />

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

More in Floors

Good for: Dialogs and drawers.