Open mikeyamato opened 1 year ago
And all the icons don't work, even though the stroke value is read
I figured something out. In order to use "strokeWidth" you must also use "stroke". "stroke" should be set to the color you want the icon to be, so it would override the "color" prop.
I am also using the check icon, so naturally I don't want a rounded stroke. Unfortunately the check icon's path is already rounded, so even if you set strokeLinecap to "butt" and strokeLinejoin to "miter" the stroke will still be round.
I might be late to the party and just want to add that if you're using tailwind you are going to need to do the following
<HomeIcon className="text-sky-500" strokeWidth={1} stroke="currentColor"/>
is there any way to use css variable color?
I'm following the checkbox example in the documentation and added
strokeWeight
prop to<CheckIcon />
. However, no matter what the value the weight doesn't change. I'm looking at the code and passing in the prop should work. I haven't tested this with other icons but I'm going to guess I'll see similar results. Meaning, no change.