Component packs › Slats › Slat Tabs

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.

Slat Tabs props

PropTypeDefaultDescription
tabs{ label: string; title: string; body: string }[]Exactly three tabs (one per face of the slats).
valuenumberSelected tab, 0 to 2.
widthnumber380Width in px. Default 380.
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 SlatTabs from './SlatTabs';

<SlatTabs />

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

More in Slats

Good for: Dialogs and drawers, Skeuomorphic UI.