Skip to content
Navigation

ElevatorNav

A brass lift panel for your pages. Press a floor: the steel doors shut, the needle sweeps the arc floor by floor, and the doors open on that floor's name. A press during the trip changes the goal.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
floors{ label, href, note?, mark? }[]—Lowest floor first, 2 to 6. mark = text on the button, default G, 1, 2.
startnumber0Index of the floor the lift starts on.
secondsPerFloornumber0.7Seconds to travel one floor.
onSelect(floor, event) => void—Called on press. Call event.preventDefault() to stay on the page.
labelstring"Site floors"Name read out by screen readers.
classNamestring""Size. Everything inside scales with the width.