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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys.
So I was reading this issue in vercel/ai-elements.
To give a TL;DR context: the user is asking how to use an external icon library instead of the default one: lucide.
Checking the code, right now only two icon libraries are supported:
lucide
andradix
.But I don't see any breaking changes if we introduce the concept:
registry:icon
where we can extend this white-listed libraries.We may want to start by requiring three parameters, the same that are used to map both libraries in the code: the
name
, thepackage
and theimport
.And this is how we can use it:
import
key.Thanks!
Ronny
Beta Was this translation helpful? Give feedback.
All reactions