Star Rating
A row of stars filled to a value, with fractional fills clipped to width. Gold fill over a hairline track. Harvested from Yosra Planner.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/star-rating.jsonUsage
star-rating-example.tsx
import { StarRating } from "@dbs/ui";
export default function StarRatingExample() {
return (
<div className="flex flex-col items-center gap-3">
<StarRating value={5} size={22} />
<StarRating value={4.5} size={22} />
<StarRating value={3} size={22} />
</div>
);
}