On This Page
Premium rating indicator supporting custom shapes (Stars, Hearts, Thumbs, Flames, Trophies), half-star precision, color themes, breakdown cards, and reviews.
star ratingProduct reviews, app store ratings, item reviews with fractional precisionheart ratingMarking items as favorites, wishlists, and popularity feedbackflame / streakActivity streaks, hot trending topics, and gamification rewardstrophy ratingAchievements, difficulty tiers, skill badges, and challenge levelsreview breakdownCustomer testimonial sections with distribution percentage barsread-only modeAggregated historical feedback stats where direct user input is disabledThe attention to detail and build quality exceeded expectations. Seamless integration with our design system!
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | Controlled active rating score count. |
| defaultValue | number | 0 | Default rating value for uncontrolled usage. |
| max | number | 5 | Maximum scoring slots count. |
| onChange | (value: number) => void | — | Callback fired when a rating icon is selected. |
| variant | "amber" | "primary" | "emerald" | "rose" | "cyan" | "amber" | Color theme and glow appearance. |
| icon | "star" | "heart" | "thumb" | "flame" | "trophy" | "smile" | "star" | Selection symbol rendering variant. |
| size | "xs" | "sm" | "md" | "lg" | "xl" | "md" | Visual dimensions of the rating icons. |
| allowHalf | boolean | false | Enables fractional half-point rating precision (0.5). |
| showScore | boolean | false | Displays score badge alongside icons. |
| tooltips | string[] | — | Array of text labels shown on hover corresponding to each score. |
| readonly | boolean | false | Disables pointer event hooks and transforms to display-only. |
| className | string | — | Additional custom class names. |
aria-valuenow, aria-valuemin, and aria-valuemax.