0.1.24 • Published 5 years ago
react-stars-display v0.1.24
React Stars Display
Simple to use React Stars package which can display fractioned stars
Example
Example for 3.6 Stars with default fill

Installation
Install the package using yarn or npm:
npm i react-stars-displayOR
yarn add react-stars-displayUsage
<Stars
stars={2.4}
size={15} //optional
spacing={2} //optional
fill='#ea9c46' //optional
/>Properties
| prop | default | type | description |
|---|---|---|---|
| stars | required | number | Number of active stars |
| size | 15px | number (px) | Size of stars |
| spacing | 1px | number (px) | Spacing between the stars |
| fill | '#ea9c46' | string (color) | Color of filled stars |