@skygdi/review-rating-stars
v1.0.3
Published
![Example](.images/stars.jpg)
Downloads
23
Readme
Quantity increase and descress (FontAwesome)
Installation
Install the package using npm:
npm install @skygdi/review-rating-stars
Don't forget to include FontAwesome CDN if you haven't
Sample
import Stars from '@skygdi/review-rating-stars';
import '@skygdi/review-rating-stars/dist/style.css'; //Optional
function App() {
return (
<div className="App">
<Stars rating={3.5} votes={534}/>
</div>
);
}
| Parameters | Values | | ------------- | ------------- | | rating | [0~5], example: 3.5 | | votes | Number > 0 |