Component packs › Aerosol › Stencil Button
The old label is buffed off the board, then a can sweeps across a stencil sheet and sprays the new one, droplet by droplet.
Stencil Button is a button 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: masked spray, stencil bridges, buffing pass.
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 |
|---|---|---|---|
label | string | ||
doneLabel | string | ||
action | () => Promise<unknown> | unknown | waits 0.9 s | Runs on press. Default: waits 0.9 s. |
disabled | boolean | ||
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
autoplay | number | false | Showcase mode: presses itself every N ms while visible. |
press(): Promise<void>destroy(): voidimport StencilButton from './StencilButton';
<StencilButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.