Shadcn Star Rating: 3 variants
Star ratings: a picker that collects a score and a note, a review breakdown and a compact score pill.
Pick one, then install only that one. Each card opens at full size with a phone, tablet and desktop width. The previews below are live.
1.Rating picker
A card: hover to preview a score and its word, click to pick, then add a note and send.
Best for: collecting a rating after a booking, order or support chat
Avoid if: you only show an existing score
Install: npx shadcn@latest add https://avaraui.com/r/star-rating.json (a shared item; the docs section shows this look)
2.Rating summary
The average, its stars and a bar per level that fills as the card scrolls into view.
Best for: a product or reviews page header
Avoid if: you want to collect a rating
Install: npx shadcn@latest add https://avaraui.com/r/star-rating.json (a shared item; the docs section shows this look)
3.Rating chip
A compact score pill with a star chip, the stars and a count.
Best for: product cards and page headers
Avoid if: you need the breakdown
Install: npx shadcn@latest add https://avaraui.com/r/star-rating.json (a shared item; the docs section shows this look)