This is a simple, highly customizable star rating component.
Attributes:
value
: this is the actual value which represents the value of ratingreadonly
: when set to true, the rating cannot be edited.To use this component:
<c:StarRating value="2" readonly="false"/>
Refer the github link for the code:
https://github.com/iamsonal/Star-Rating