Component packs › Slats › Slat Tabs
A trivision board: triangular slats turn a third of a turn to the next panel, left to right.
Slat Tabs is a tabs from Slats, a component pack with 6 blind and shutter components: Reveals, modals, tabs and loaders built from blinds, louvres and shutters. Price: $2 for the whole pack.
Built with: triangular prisms, face lighting, tablist.
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 | { label: string; title: string; body: string }[] | Exactly three tabs (one per face of the slats). | |
value | number | Selected tab, 0 to 2. | |
width | number | 380 | Width in px. Default 380. |
onChange | (index: number) => void | ||
autoplay | number | false | Showcase mode: moves to the next tab every N ms while visible. |
readonly value: numbersetValue(index: number, silent?: boolean): voiddestroy(): voidimport SlatTabs from './SlatTabs';
<SlatTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Dialogs and drawers, Skeuomorphic UI.