react-stars-display

0.1.24 • Public • Published

React Stars Display

Simple to use React Stars package which can display fractioned stars

Example

Example for 3.6 Stars with default fill alt Stars Example

Installation

Install the package using yarn or npm:

npm i react-stars-display

OR

yarn add react-stars-display

Usage

<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

Package Sidebar

Install

npm i react-stars-display

Weekly Downloads

3

Version

0.1.24

License

MIT

Unpacked Size

8.41 kB

Total Files

3

Last publish

Collaborators

  • andrejkitanovic