Component packs › Lather › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | ||
count | number | ||
label | string | ||
names | string[] | Names read out for each score. | |
onChange | (v: number) => void | ||
autoplay | number | false |
readonly value: numberset(v: number): voiddestroy(): voidimport BubbleRating from './BubbleRating';
<BubbleRating />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.