About
Star rating input with keyboard support and a read-only mode. From GooseUI (goosen-x/gooseui), MIT.
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
import { Rating } from "@/components/ui/gooseui-rating"
export default function CardPreview() {
return (
<div className="flex h-full flex-col items-center justify-center gap-3">
<Rating defaultValue={4} size="lg" />
<Rating readOnly value={3.5} shape="sparkle" size="sm" />
</div>
)
}
















