Open priyanshuraj24 opened 3 weeks ago
since the original creator of iconsax abandoned the project there is no reason working on this library. plus I dont have access to my old npm account so I cannot update it there.
but I see a lots of people are using this package, so I might fix those issues and publish new one.
After updating to React 19,
react-iconsax
icons no longer display correctly without explicitly specifyingsize
andcolor
. This is due to React 19’s removal ofdefaultProps
for functions, whichreact-iconsax
relied on to set these default values. The React 19 Upgrade Guide highlights this change: https://19.react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultpropsSetting
size
andcolor="currentColor"
directly on each icon restores visibility:This process, however, is time-consuming in large codebases where react-iconsax icons are used extensively.