NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsRating

Rating

Star rating components for feedback.

PreviousSlider
NextFile Upload
On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub

Rating

Premium rating indicator supporting custom shapes (Stars, Hearts, Thumbs, Flames, Trophies), half-star precision, color themes, breakdown cards, and reviews.

When to use

star ratingProduct reviews, app store ratings, item reviews with fractional precision
heart ratingMarking items as favorites, wishlists, and popularity feedback
flame / streakActivity streaks, hot trending topics, and gamification rewards
trophy ratingAchievements, difficulty tiers, skill badges, and challenge levels
review breakdownCustomer testimonial sections with distribution percentage bars
read-only modeAggregated historical feedback stats where direct user input is disabled

Interactive Playground

Live CanvasInteractive
4.5 / 5
Controls(7)
variant
select

Color aesthetic theme and glowing accents

icon
select

Icon symbol shape

size
select

Icon sizing multiplier

allowHalf
boolean
Toggle state:

Enable 0.5 fractional half-star precision

showScore
boolean
Toggle state:

Display numerical score badge

max
number

Maximum scale rating count

readonly
boolean
Toggle state:

Disables interaction and hover effects

Generated JSX
Source
import { Rating } from "nexoreui"

<Rating />

1. Half-Star Precision Rating

4.5 / 5
Interactive Value: 4.5
component.tsx
1

2. E-Commerce Review Rating Breakdown

4.8out of 5
2,849verified ratings
5
78%
4
15%
3
4%
2
2%
1
1%
component.tsx
1

3. Verified Customer Review Card

Alexander Vance
Alexander VanceVerified
2 days ago

Exceptional quality and finish

The attention to detail and build quality exceeded expectations. Seamless integration with our design system!

component.tsx
1

4. Flame Streak & Gamification Rating

5 / 5
Interactive Value: 4.5
component.tsx
1
Page 1 of 2

API Reference (Props)

PropTypeDefaultDescription
valuenumber—Controlled active rating score count.
defaultValuenumber0Default rating value for uncontrolled usage.
maxnumber5Maximum 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.
allowHalfbooleanfalseEnables fractional half-point rating precision (0.5).
showScorebooleanfalseDisplays score badge alongside icons.
tooltipsstring[]—Array of text labels shown on hover corresponding to each score.
readonlybooleanfalseDisables pointer event hooks and transforms to display-only.
classNamestring—Additional custom class names.

Accessibility (a11y)

  • Keyboard Focus: Focusable using standard Tab navigation. Use arrow keys Right Arrow / Left Arrow to increment or decrement rating values.
  • Screen Reader Compliance: Implements WAI-ARIA slider role with dynamic aria-valuenow, aria-valuemin, and aria-valuemax.