icons icon indicating copy to clipboard operation
icons copied to clipboard

Request: Allow to change stroke-width

Open samishal1998 opened this issue 1 year ago • 4 comments

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.

samishal1998 avatar Feb 29 '24 13:02 samishal1998

+1

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

iljapanic avatar May 01 '24 16:05 iljapanic

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.

GinoGreen avatar May 08 '24 20:05 GinoGreen

Any update on this?

j-fdion avatar Oct 21 '24 20:10 j-fdion

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

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

rnbrady avatar Oct 29 '24 10:10 rnbrady