Popularity
1.8
Stable
Activity
0.0
Stable
54
5
12

Programming language: TypeScript
License: MIT License
Tags: UI Components     Star Rating     React-component     Component     Input     Reactjs     Form     Widget     Html     Browser     Browserify     Control     Stars     Rating    

react-star-rating-input alternatives and similar libraries

Based on the "Star Rating" category.
Alternatively, view react-star-rating-input alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of react-star-rating-input or a related project?

Add another 'Star Rating' Library

README

Build Status

About

React.js components for entering 0—N stars (N is 5 by default), or displaying 0—N stars. See the demo.

It's published to npm compiled to ES5, and should work in IE11, if Promise gets polyfilled.

Installation

npm install --save react-star-rating-input

The two main exports are: {StarRatingInput, StarRating}. The former is for an interactive input control, the latter is for passive star rating display. Star rasters and CSS is exported as the {css} string.

Usage

See the code of the demo mentioned above.

StarRatingInput props

Static layout

  • size — how many stars to display. The default value is 5

Interaction

  • value — how many stars are selected
  • onChange: (value: number) => void — your value change handler

StarRating props

  • value — how many stars are displayed