Component packs › Lather › Bubble Rating

Bubble Rating

Pick a score and that many bubbles inflate one after another; lower it and the extra ones pop from the top down.

Bubble Rating is a rating 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: spring inflate, staggered pops, radio group.

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 Rating props

PropTypeDefaultDescription
valuenumber
countnumber
labelstring
namesstring[]Names read out for each score.
onChange(v: number) => void
autoplaynumber | false

Methods on the ref

Use it in React

import BubbleRating from './BubbleRating';

<BubbleRating />

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.