Component packs › Clayworks › Inflate Rating
Stars inflate under your pointer and pump up one after another when you choose, with words that say what it means.
Inflate Rating is a rating from Clayworks, a component pack with 8 components: Soft clay controls that squash, dent and wobble. Price: $2 for the whole pack.
Built with: staggered pump, hover inflate, 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 |
|---|---|---|---|
label | string | ||
value | number | ||
words | string[] | ||
autoplay | boolean | Showcase mode: rates by itself. | |
onChange | (value: number) => void |
destroy(): voidimport InflateRating from './InflateRating';
<InflateRating />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.