Description
react-rating is a React component that shows a star-style rating control, and it supports custom symbols. The symbols can be drawn with inline styles or taken from glyphicons in popular CSS toolkits such as Font Awesome or Bootstrap. The README says the component was inspired by the jQuery plugin bootstrap-rating. You control the scale with start, stop and step props, so a range from 0 to 10 with a step of 2 gives five symbols, each standing for two points. The fractions prop lets users pick partial ratings within a symbol, for example half a star, and the initialRating and placeholderRating props set the starting value. A readonly prop shows a rating without letting people change it, and a quiet option controls the animation. The component is installed from npm and peer-depends on React, which you install separately. The README has a demo, a usage section, a properties table with the type and default for each prop, and an upgrade warning for users of older versions. The source is public on GitHub.…
Highlights
- Rating control with custom symbols
- Glyphicon and inline-style symbols
- Fractional ratings with the fractions prop
- Read-only display mode
- Start, stop and step range settings
Ratings & Reviews
No ratings yet
Be the first to rate react-rating.
People also visit
react-rating FAQ
What is react-rating?
A React component for showing and collecting a rating, such as stars, with custom symbols.
Is it free?
Yes. The source is public on GitHub and listed as open source.
How do I install it?
The README says to install react-rating with npm. React is a peer dependency, so your project needs React installed too.
Can I use my own icons?
Yes. The README says the symbols can use inline styles or glyphicons from CSS toolkits such as Font Awesome or Bootstrap.
Can I show a rating that people cannot change?
Yes. The readonly prop turns the component into a display-only rating.
What are the best react-rating alternatives?
Popular alternatives to react-rating include rc-rate, react-rater and @nine-thirty-five/material-symbols-react. See all react-rating alternatives















