1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month🚨 Slop police🚨 Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. sunui
  3. Star Rating

Star Rating

block

Star rating with amber stars (the semantic --sunui-rating colour) that asks why: after a score is chosen, the same frame grows reason chips (what went wrong at or below the threshold, what they liked above it) that swap in place when the score crosses it, plus an optional "same as N% of buyers" line from a distribution; the level label rolls in the direction of change. Half stars, keyboard roving focus, optional clear, hidden form input, and a read-only mode for review summaries. Reduced motion switches instantly.

pnpm dlx shadcn@latest add "https://sunui.synvize.com/r/star-rating.json"
Premium blocks for shadcn/uiShadcnblocks.com · AffiliateExplore
  • framer-motion
  • utils
components/star-rating.tsx