Component packs › Jigsaw › Interlocking Tabs
The active tab drops and seats its knob in a socket that slides along the panel edge to meet it.
Interlocking Tabs is a tabs from Jigsaw, a component pack with 6 puzzle controls: Upload, progress, tabs and forms made of jigsaw pieces that cut, drop and lock together. Price: $2 for the whole pack.
Built with: moving socket in the panel, spring tabs, arrow 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 | InterlockingTab[] | ||
active | number | ||
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
onChange | (index: number) => void | ||
autoplay | number | false | Showcase mode: moves to the next tab every N ms while visible. |
readonly active: numberselect(index: number): voiddestroy(): voidimport InterlockingTabs from './InterlockingTabs';
<InterlockingTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.