react-feather icon indicating copy to clipboard operation
react-feather copied to clipboard

Why strokeWidth is not be passed as a property?

Open vineetdigit opened this issue 5 years ago • 2 comments

This is more of a question rather than an issue. But I see that for all icons, the strokeWidth is always set to 2. Except for the size and stroke, almost all SVG properties are directly assigned. Is the expectation to change them with CSS?

vineetdigit avatar Jan 29 '21 06:01 vineetdigit

You can pass strokeWidth as props. It'll just override the default value of 2. The library is using a spreader operator to apply properties other than size, color, etc.

dexterthemsb avatar Jan 30 '21 06:01 dexterthemsb