Component packs › Aerosol › Stencil Tabs

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.

Stencil Tabs props

PropTypeDefaultDescription
tabsStencilTab[]
activenumber
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
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 StencilTabs from './StencilTabs';

<StencilTabs />

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

More in Aerosol

Good for: Skeuomorphic UI.