Component packs › Lather › Bubble Switch
The thumb is a soap bubble with real thin-film colour that stretches as it travels and wobbles when it stops.
Bubble Switch is a toggle 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: thin-film colour, speed stretch, wobble modes.
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 |
|---|---|---|---|
checked | boolean | ||
disabled | boolean | ||
label | string | ||
size | number | ||
onChange | (checked: boolean) => void | ||
autoplay | number | false |
readonly checked: booleansetChecked(checked: boolean, silent?: boolean): voiddestroy(): voidimport BubbleSwitch from './BubbleSwitch';
<BubbleSwitch />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.