Component packs › Tangram › Tangram Tabs
The indicator is a small tangram: its pieces leave one by one and reassemble under the new tab as that tab's own figure.
Tangram Tabs is a tabs from Tangram, a component pack with 6 tangram controls: Seven tangram pieces that rearrange into every state of your interface. Price: $2 for the whole pack.
Built with: figure per tab, nearest piece leaves first, roving focus.
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[] | ||
panels | string[] | ||
selected | number | ||
onChange | (index: number) => void | ||
theme | "light" | "dark" | ||
autoplay | number | false | Showcase mode: moves to another tab every N ms while visible. |
readonly selected: numberselect(index: number): voiddestroy(): voidimport TangramTabs from './TangramTabs';
<TangramTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: 404 and empty states.