Component packs › Transit › Line Tabs
The front of the pill drives to the new tab while the back catches up, so it stretches and leans on the move, and the labels change colour exactly where it covers them.
Line Tabs is a tabs from Transit, a component pack with 8 components: Navigation components drawn as one metro line. Price: $2 for the whole pack.
Built with: two-end pill, ink clip, tablist keys.
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 |
|---|---|---|---|
tabs | LineTab[] | ||
value | number | ||
panel | boolean | true | Show the demo panel under the tabs. Default true. |
onChange | (index: number) => void | ||
theme | 'dark' | 'light' | ||
autoplay | boolean | Showcase mode: rides between tabs until touched. |
readonly value: numberset(i: number): voiddestroy(): voidimport LineTabs from './LineTabs';
<LineTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Navigation and menus.