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
When I do that, I see the following error in the console:
<i data-lucide="burger"></i> icon name was not found in the provided icons object.
I have got it to work, but by using the following code to wrap the iconNode data, so that it matches the format that you'd get when importing an icon from the main Lucide package:
Assuming that I'm not doing something wrong, and that this is how to get Lucide Lab icons working in vanilla JS, I don't know if it's worth updating the documentation to include this?
Or, alternatively, may I suggest a feature to update createIcons to perform the transforms automatically if it detects bare iconNode data with no SVG wrapper.
I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
The text was updated successfully, but these errors were encountered:
Package
Version
0.402.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
The documentation says that the way to use Lucide Lab custom icons in vanilla JS is with the following code:
When I do that, I see the following error in the console:
I have got it to work, but by using the following code to wrap the iconNode data, so that it matches the format that you'd get when importing an icon from the main Lucide package:
Assuming that I'm not doing something wrong, and that this is how to get Lucide Lab icons working in vanilla JS, I don't know if it's worth updating the documentation to include this?
Or, alternatively, may I suggest a feature to update
createIcons
to perform the transforms automatically if it detects bareiconNode
data with no SVG wrapper.Steps to reproduce
See the following CodePen: https://codepen.io/jamiemlaw/pen/poXoWjd/3b4db0e038ed7e644a2e58fca8c55906
Checklist
The text was updated successfully, but these errors were encountered: