Component packs › Floors › Floor Dial

Floor Dial

An Art Deco brass needle swings to the chosen floor on an underdamped spring, overshoots, settles and lights that floor’s jewel, with its shadow moving on the enamel.

Floor Dial is a dial 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: underdamped needle, drag on a scaled host, enamel and brass.

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.

Floor Dial props

PropTypeDefaultDescription
minnumber
maxnumber
valuenumber
labelsstring[]G for 0, B1… for negativesCustom names per position, e.g. ['G','1','2']. Default: G for 0, B1… for negatives.
labelstringAccessible name.
onChange(value: number) => void
autoplaynumber | falseShowcase mode: swings to another floor every N ms while visible.

Methods on the ref

Use it in React

import FloorDial from './FloorDial';

<FloorDial />

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

More in Floors

Good for: Dialogs and drawers.