Component packs › Stitch › Thread Tabs
A bead hangs on a slack thread under the tabs; the thread makes a V under its weight and swings as it slides.
Thread Tabs is a tabs from Stitch, a component pack with 6 thread controls: Controls that are sewn, knitted and embroidered, with real thread physics. Price: $2 for the whole pack.
Built with: rope sag under load, sliding bead, swing and settle.
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 | string[] | ||
active | number | ||
width | number | ||
onChange | (i: number) => void | ||
autoplay | number | false |
select(i: number): voiddestroy(): voidimport ThreadTabs from './ThreadTabs';
<ThreadTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.