Component packs › Transit › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | ||
links | string[] | ||
value | number | ||
open | boolean | Start open (the showcase then rides between links instead of closing). | |
onNavigate | (index: number) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: opens, rides and closes until touched. |
readonly open: booleantoggle(open?: boolean): voiddestroy(): voidimport LineMenu from './LineMenu';
<LineMenu />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Navigation and menus.