Component packs › Aerosol › Spray Heading

Spray Heading

A headline sprayed in two passes through a stencil: speckle to solid, overspray around it, drips where paint pools.

Spray Heading is a heading 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: two-pass spray, drips that bead, real text kept.

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.

Spray Heading props

PropTypeDefaultDescription
textstring
sizenumber46Font size in px. Default 46.
level1 | 2 | 32Heading level for the real text. Default 2.
onViewbooleantrueSpray when it scrolls into view. Default true.
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
autoplaynumber | falseShowcase mode: buffs it off and sprays it again every N ms while visible.

Methods on the ref

Use it in React

import SprayHeading from './SprayHeading';

<SprayHeading />

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

More in Aerosol

Good for: Skeuomorphic UI.