Rating
Renders a star rating component with interactive buttons. It allows users to select a rating using mouse or keyboard. It shows hover effects and focuses on selected stars. Use it to collect user ratings in forms or reviews.
Loading preview
Installation
terminal
npx layro-cli add @shadcnblocks/rating
npx layro-cli add @shadcnblocks/rating
bunx layro-cli add @shadcnblocks/rating
New project? Start with init. Writes third-party code and installs packages with scripts off.
Code
Sign in to see the code
Free, with GitHub, Google or email. The install command above works without an account.
Sign inVersions
1.0.0 · current
Nov 7, 2026
First release.







