Skip to content
R

react-rater

A star rater in react.js

by ndyagFree

#1201in UI Libraries
0In stores

Description

react-rater is an interactive, customizable star rating component for React. By default it shows five stars. The total, rating, interactive…

Highlights

  • Star rating for React
  • Interactive or read-only mode
  • Fractional ratings in read-only mode
  • onRate, onRating and onCancelRate callbacks
  • Custom star component using fillRatio

Ratings & Reviews

No ratings yet

Be the first to rate react-rater.

People also visit

R

rc-rate

React Star Rate Component

UI Libraries
Launch
R

react-rating

A rating react component with custom symbols

UI Libraries
Launch
R

react-slider

Slider component for React

UI Libraries
Launch
R

react-native-in-app-review

react native in app review, to rate on Play store, App Store, Generally

UI Libraries
Launch
R

react-input-range

React component for inputting numeric values within a range

UI Libraries
Launch
R

react-number-format

React component to format number in an input or as a text

UI Libraries
Launch

react-rater FAQ

What is react-rater?

An interactive, customizable star rating component for React.

How do I make a read-only rater?

Set interactive to false. The rating can then contain a fractional part, such as 3.6.

Which callback should I use?

onRate for clicks. The README says most apps only need it. onRating and onCancelRate handle hover behavior.

Does it work with older React?

For React versions below 16.8, which lack hooks, the README says to use react-rater version 5.

How do I style the stars?

Use CSS, or define your own star component that uses the fillRatio value from 0 to 1.

What are the best react-rater alternatives?

Popular alternatives to react-rater include rc-rate, react-rating and react-slider. See all react-rater alternatives

Developer Stuff

Badges