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

Possibility to add a stroke on svg path #9

Open
kimchicharlie opened this issue Jun 27, 2018 · 1 comment
Open

Possibility to add a stroke on svg path #9

kimchicharlie opened this issue Jun 27, 2018 · 1 comment

Comments

@kimchicharlie
Copy link

Hello, first thanks a lot for this great rating component !

I'm trying to find a way to provide a stroke to the star's svg path (see picture below), do you have any idea ?

capture d ecran 2018-06-27 a 11 40 22

If nothing allows me to do so, maybe could we add an object svgAttributes that could be destructurated in the svg or even these props:

  • starRatedStroke
  • starEmptyStroke
  • starHoverStroke

Thanks!

@ekeric13
Copy link
Owner

I like the svgAttributes solution. Will definitely do that. Right now the way you can modify the stroke is by using the path classname.
You could also use this sister library:
https://github.com/ekeric13/react-ratings-declarative#ratings

And pass in your own svgs via the svgs prop

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

2 participants