Component packs › Floors › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
min | number | ||
max | number | ||
value | number | ||
labels | string[] | G for 0, B1… for negatives | Custom names per position, e.g. ['G','1','2']. Default: G for 0, B1… for negatives. |
label | string | Accessible name. | |
onChange | (value: number) => void | ||
autoplay | number | false | Showcase mode: swings to another floor every N ms while visible. |
readonly value: numbersetValue(v: number, silent?: boolean): voiddestroy(): voidimport FloorDial from './FloorDial';
<FloorDial />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers.