About
An interactive or read-only star rating control for displaying and collecting feedback scores, with an optional numeric label.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Rating to your project and fits it to your theme.
Code
How Rating is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import RatingComponent from "@/components/ui/rating";
export default function ReadonlyRatingDemo() {
return (
<div className="flex flex-col items-center justify-center gap-4 p-10">
<RatingComponent value={4.5} isReadonly showLabel />
</div>
);
}







