Rating
An interactive component for displaying star ratings and allowing users to provide ratings with customizable appearance.
Examples
(7)Properties
(45)Playground
Basics
Capture a single rating value with an interactive control and mirror the current score in helper text.
Sizes
Compare the available
size tokens side by side to pick the right scale for your scene.Colors
Derive filled, hover, and empty colors from the theme palette to align ratings with product semantics.
Fractions
Enable fractional ratings with configurable
precision values to capture nuanced feedback.Custom Icons
Swap the default star for any registry icon with
icon, pair it with a different emptyIcon for the unfilled state, or fall back to plain text glyphs through character and emptyCharacter.Variants
Contrast interactive, read-only, and tooltip-enabled ratings to decide which fits your feedback flow.
Form Field
Use
required, description, and error to drop a rating into a form like any other field, and clearable to let people undo a score by selecting it again.Scan to open this page on your phonereact-ui-library.com/components/Rating
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources