Component packs › Aerosol › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | ||
size | number | 46 | Font size in px. Default 46. |
level | 1 | 2 | 3 | 2 | Heading level for the real text. Default 2. |
onView | boolean | true | Spray when it scrolls into view. Default true. |
dark | boolean | follows the page | Force the dark (true) or light (false) look. Default: follows the page. |
autoplay | number | false | Showcase mode: buffs it off and sprays it again every N ms while visible. |
spray(): voiddestroy(): voidimport SprayHeading from './SprayHeading';
<SprayHeading />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.