Component packs › Dovetail › Block Tabs
Each tab is its own wooden block; the chosen one slides forward off the row and catches the light.
Block Tabs is a tabs from Dovetail, a component pack with 6 woodwork controls: Dropdowns, toggles, tabs and dialogs made of real-looking oak, walnut and maple. Price: $2 for the whole pack.
Built with: per-block grain, friction spring, tablist keys.
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 | BlockTab[] | ||
active | number | ||
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
onChange | (index: number) => void | ||
autoplay | number | false | Showcase mode: moves to the next tab every N ms while visible. |
select(i: number): voiddestroy(): voidimport BlockTabs from './BlockTabs';
<BlockTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Menus and popovers, Skeuomorphic UI.