8.0.1 • Published 7 years ago
react-star-rating-input v8.0.1
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-inputThe 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- valuechange handler
StarRating props
- value— how many stars are displayed
8.0.1
7 years ago
8.0.0
7 years ago
6.3.0
7 years ago
6.2.0
9 years ago
7.0.1
9 years ago
7.0.0
9 years ago
6.1.2
10 years ago
6.1.1
10 years ago
6.1.0
10 years ago
6.0.2
10 years ago
6.0.1
11 years ago
6.0.0
11 years ago
5.0.0
11 years ago
4.2.0
11 years ago
4.1.1
11 years ago
4.1.0
11 years ago
4.0.0
11 years ago
3.1.0
11 years ago
3.0.0
11 years ago
2.0.1
11 years ago
2.0.0
11 years ago
1.0.2
11 years ago
1.0.1
11 years ago
1.0.0
11 years ago