Closed grubersjoe closed 4 years ago
@carmelopullara Your thoughts on this PR?
Feature needed :)
if anyone is waiting on this, you can do it without the prop using the stroke-width
property in CSS instead. e.g.
.my-component svg {
stroke-width: 3;
}
(that selector will be different depending on the structure of your app.)
Thanks for the workaround till then @pascalpp. Using the strokeWidth prop would be much more elegant though and everything in one place. Surprised this wasn't implemented from the get go, but happy there is a PR for it :D
I am able to use the strokeWidth
prop already without this PR? "react-feather": "2.0.4"
Oh boy... @MiLeung is right, all SVG properties are already supported. How did I miss this :see_no_evil: :smile:.
Although one issue I just noticed is icons with thicker stroke-widths might be cut off.
I'd like to be able to set the
strokeWidth
of the SVGs with a component property. This PR implements this.