Component packs › Tangram › Tangram Tabs

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.

Tangram Tabs props

PropTypeDefaultDescription
tabsstring[]
panelsstring[]
selectednumber
onChange(index: number) => void
theme"light" | "dark"
autoplaynumber | falseShowcase mode: moves to another tab every N ms while visible.

Methods on the ref

Use it in React

import TangramTabs from './TangramTabs';

<TangramTabs />

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

More in Tangram

Good for: 404 and empty states.