0.0.1 • Published 9 years ago
star-rating-react v0.0.1
star-rating-react
A React star rating component.
Install
$ npm install --save star-rating-react
Usage
import StarRating from 'star-rating-react';
<StarRating
size={15}
value={3}
onChange={function(val){console.log(val)}}
/>,Props
| 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 |
Locally serve example
$ npm run dev-serverNOTE: Navigate to http://localhost:8080/examples/
Build
$ npm run buildTest
$ npm testLicense
MIT
0.0.1
9 years ago