Component packs › Parcel › Liquid Stars

Liquid Stars

The stars hold liquid and fill to the exact average with a sloshing surface; bars grow, filter the reviews, and the rating input pours as you hover.

Liquid Stars is a reviews from Parcel, a component pack with 8 components: E-commerce components where every product turns, packs and travels. Price: $2 for the whole pack.

Built with: fractional fill, filter bars, rating radio.

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.

Liquid Stars props

PropTypeDefaultDescription
counts[number, number, number, number, number]Count of reviews per star, from 5 down to 1.
reviewsStarReview[]
onRate(stars: number) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: filters and rates until touched.

Methods on the ref

Use it in React

import LiquidStars from './LiquidStars';

<LiquidStars />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Parcel

Good for: E-commerce UI components.