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
Is there a way to add a tooltip when i hover over a star? Like for eg, if I hover over the first star I want to show 'Bad', 2 is 'average' and so on
ReplyDeletequick question can we change the color of the stars
ReplyDeleteIs there a LWC version of this
ReplyDeletethis was easy to understand.thanks .
ReplyDeleteIs there any way to implemnt half star based on decimal value. Where should i make changes
Did you get solution of this??
Delete