Component packs › Aerosol › Stencil Tabs
A small can sweeps along the new tab and sprays its bar through a strip stencil while the old bar is buffed off.
Stencil Tabs is a tabs from Aerosol, a component pack with 6 spray paint controls: Buttons, headings and controls spray-painted through stencils, droplet by droplet. Price: $2 for the whole pack.
Built with: sprayed indicator, buffing, arrow 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 | StencilTab[] | ||
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. |
readonly active: numberselect(i: number): voiddestroy(): voidimport StencilTabs from './StencilTabs';
<StencilTabs />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.