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

Request: Allow to change stroke-width #177

Open
samishal1998 opened this issue Feb 29, 2024 · 4 comments
Open

Request: Allow to change stroke-width #177

samishal1998 opened this issue Feb 29, 2024 · 4 comments

Comments

@samishal1998
Copy link

Having the ability to change stroke-width is essential when resizing icons. would love to be able to do this here. and this would allow users to use tailwind utility classes to easily theme the icons.

Much Appreciated.

@iljapanic
Copy link

+1

Would love to adjust the stroke width. It comes particularly handy when using icons at larger sizes.

@GinoGreen
Copy link

Having the ability to change stroke-width is essential when resizing icons. would love to be able to do this here. and this would allow users to use tailwind utility classes to easily theme the icons.

Much Appreciated.

<ChevronLeftIcon stroke="#000" strokeWidth={"4px"} />

You must first set the stroke to be able to manipulate the stroke width.

@j-fdion
Copy link

j-fdion commented Oct 21, 2024

Any update on this?

@rnbrady
Copy link

rnbrady commented Oct 29, 2024

If you're using Tailwind CSS you can do something like this:

<CopyIcon className="stroke-white stroke-2 [&>path]:stroke-inherit" />

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

5 participants