Component packs › Lather › Pop Button

Pop Button

Press it and the film tears open from your finger and races round, flinging droplets, then a new bubble inflates.

Pop Button is a button from Lather, a component pack with 6 bubble controls: Controls made of soap bubbles, with real thin-film colour. Price: $2 for the whole pack.

Built with: tear from the touch point, droplet spray, reinflate.

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.

Pop Button props

PropTypeDefaultDescription
labelstring
doneLabelstring
sizenumber104Diameter in px. Default 104.
onClick() => void
autoplaynumber | false

Methods on the ref

Use it in React

import PopButton from './PopButton';

<PopButton />

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

More in Lather

Good for: Toggle switches, Loaders and progress, Physics UI components.