A React star rating component.
$ npm install --save star-rating-react
import StarRating from 'star-rating-react';
<StarRating
size={15}
value={3}
onChange={function(val){console.log(val)}}
/>,
Name | Type | Description |
---|---|---|
size | Number |
Max Rating (number of possible stars) |
value | Number |
Number of star highlighted |
onChange | Function |
Invoked when user selects a rating |
$ npm run dev-server
NOTE: Navigate to http://localhost:8080/examples/
$ npm run build
$ npm test
MIT