-
Notifications
You must be signed in to change notification settings - Fork 26
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
Allow more types of Icons as IconProps #7
Comments
Found a solution, will open PR |
I don't think any of this is necessary. |
Can you show me your Implementation? It wasn't working for me. |
|
Try adding properties to the ArrowRight (like color etc) and you'll see what Issue I run into. I did not know how I could add them without passing a whole Element. |
Goal
I would like to use lucide (or any other) icon library for my icons in the

expandIcon
button variant.When doing so tho, the type is not allowing it.
I managed to get around this by changing in the
IconProps
the Icon type toReact.ReactNode
and updating theIcon
use from<Icon />
to{Icon}
.This allows me to use the Icon like this:
Problem
Now i have the problem that the expanding Animation for the Icon is not working anymore / the Icon is not showing up at all.
Could you help / update the code to allow other Icons to be animated too?
Resources
Reproduction Link: BirthdayyBot/dashboardV2
The text was updated successfully, but these errors were encountered: