About
An interactive five-star rating control with hover preview, keyboard arrow navigation, and a live numeric readout for collecting user ratings.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Star Rating Input to your project and fits it to your theme.
Code
How Star Rating Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { StarRatingInput } from "@/components/ui/star-rating-input";
export default function StarRatingInputDemo() {
return (
<div className="flex w-full items-center justify-center bg-background p-10">
<StarRatingInput defaultValue={4} label="Rate the show" />
</div>
);
}
















