Component packs › Lather › Bubble Switch

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.

Bubble Switch props

PropTypeDefaultDescription
checkedboolean
disabledboolean
labelstring
sizenumber
onChange(checked: boolean) => void
autoplaynumber | false

Methods on the ref

Use it in React

import BubbleSwitch from './BubbleSwitch';

<BubbleSwitch />

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.