Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hover effect on rating #55

Open
Suraj-Chandola opened this issue Oct 11, 2018 · 3 comments
Open

Add hover effect on rating #55

Suraj-Chandola opened this issue Oct 11, 2018 · 3 comments

Comments

@Suraj-Chandola
Copy link

Suraj-Chandola commented Oct 11, 2018

Please add hover effect on stars

@MuhammadHaseeb-IVL
Copy link

have anyone found the solution for adding hover effect?

@mojtabamoosavi
Copy link

I had the same problem and fixed it :
You can set initial state like this: tempRate: null and use onStarHover props to set tempRate value.
So, in StarRating component set the value props like this : value={tempRating ? tempRating : rating}.

I hope solve your problem.

@pigd0g
Copy link

pigd0g commented Jun 18, 2021

Hover Example - https://codesandbox.io/s/tailwind-star-rating-heroicons-lixtc?file=/src/App.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants