Component packs › Aerosol › Overspray Toggle

Overspray Toggle

The thumb is a spray cap that paints the track as it slides, with overspray drifting past the track edge.

Overspray Toggle is a toggle 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: paint follows the thumb, overspray outside, buffing return.

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.

Overspray Toggle props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstring
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onChange(on: boolean) => void
autoplaynumber | falseShowcase mode: toggles every N ms while visible.

Methods on the ref

Use it in React

import OversprayToggle from './OversprayToggle';

<OversprayToggle />

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

More in Aerosol

Good for: Skeuomorphic UI.