-
-
Notifications
You must be signed in to change notification settings - Fork 721
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
[Feature]: Icon parent wrapper element/component #719
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe
Many UI libraries wrap their own Icon components in divs with special classes to format icons correctly.
At the moment, one has to add these divs and classes manually to any icon imported from
react-icons
.Solution
Have new props to the
IconContext
so that all Icons are automatically wrapped with the parent component.These could also be overridden at the component level if necessary:
Minimal sample repository URL
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: