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

Why strokeWidth is not be passed as a property? #83

Open
vineetdigit opened this issue Jan 29, 2021 · 1 comment
Open

Why strokeWidth is not be passed as a property? #83

vineetdigit opened this issue Jan 29, 2021 · 1 comment

Comments

@vineetdigit
Copy link

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?

@dexterthemsb
Copy link

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.

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