Component packs › Lather › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
doneLabel | string | ||
size | number | 104 | Diameter in px. Default 104. |
onClick | () => void | ||
autoplay | number | false |
pop(): voiddestroy(): voidimport PopButton from './PopButton';
<PopButton />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.