Component packs › Aerosol › Stencil Button

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.

Stencil Button props

PropTypeDefaultDescription
labelstring
doneLabelstring
action() => Promise<unknown> | unknownwaits 0.9 sRuns on press. Default: waits 0.9 s.
disabledboolean
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
autoplaynumber | falseShowcase mode: presses itself every N ms while visible.

Methods on the ref

Use it in React

import StencilButton from './StencilButton';

<StencilButton />

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

More in Aerosol

Good for: Skeuomorphic UI.