Component packs › Transit › Line Menu

Line Menu

Tap the menu and the route draws itself down the screen, stations pop on and each link boards from the line; closing runs it all back.

Line Menu is a mobile menu from Transit, a component pack with 8 components: Navigation components drawn as one metro line. Price: $2 for the whole pack.

Built with: one clock, focus in and out, Escape.

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.

Line Menu props

PropTypeDefaultDescription
brandstring
linksstring[]
valuenumber
openbooleanStart open (the showcase then rides between links instead of closing).
onNavigate(index: number) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: opens, rides and closes until touched.

Methods on the ref

Use it in React

import LineMenu from './LineMenu';

<LineMenu />

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

More in Transit

Good for: Navigation and menus.