Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

add icon troubleshooting section #1678

Open
david-morris opened this issue Dec 4, 2023 · 0 comments
Open

add icon troubleshooting section #1678

david-morris opened this issue Dec 4, 2023 · 0 comments

Comments

@david-morris
Copy link

david-morris commented Dec 4, 2023

Subject

Icon

Description

I use react-icons/hi (heroicons) and I've noticed that there's no good way to get those icons playing nicely with Chakra. If I use as= then the resulting creature does not accept a forwarded ref (meaning no tooltip). If I add the icon as a child, then there's a doubled viewBox setup which creates really weird results.

It would be nice to have documentation for integrating different common libraries. What are the gotchas when using each type of icon integration? How do we handle different use cases?

In this case I'm wrapping with a <Box>, and I don't know if that's what's supposed to be done for this sort of use case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant