Component packs › Jigsaw › Interlocking Tabs

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.

Interlocking Tabs props

PropTypeDefaultDescription
tabsInterlockingTab[]
activenumber
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onChange(index: number) => void
autoplaynumber | falseShowcase mode: moves to the next tab every N ms while visible.

Methods on the ref

Use it in React

import InterlockingTabs from './InterlockingTabs';

<InterlockingTabs />

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

More in Jigsaw

Good for: File upload.