You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it worked when passing the tailwind styles but unfortunately, the vite-plugin-svgr doesnot work. I found out that it can expand the native svg properties such as fill.
Is there any way to make it work? Thank you!! I would love to be pointed towards the correct direction or documentation.
The text was updated successfully, but these errors were encountered:
The real problem was that I was not able to change the color of the svg icon that I copied from iconify and was changing the fill of the icon. And later found out it works when I change the text-colorof the icon.
@arunpt svgr already takes in the class name as they are converted to components so, my problem was I was not able to change the color of the svg but I later found out text color was the property that changed the color in my case.
I think there was no problem with the plugin or the implementation.
What are the problems, that you are having?
I was using the svgr for webpack and it offered a feature where you could add
className
to the imported svg component to style it.For example:
And it worked when passing the tailwind styles but unfortunately, the vite-plugin-svgr doesnot work. I found out that it can expand the native svg properties such as
fill
.The text was updated successfully, but these errors were encountered: