Skip to content
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

fix(lucide): Support for iconNodes from other libs like Lab #2752

Merged
merged 8 commits into from
Feb 7, 2025

Conversation

ericfennis
Copy link
Member

closes #2300

What is the purpose of this pull request?

  • New Icon
  • Bug fix
  • New Feature
  • Documentation update
  • Other:

Description

Adds support for iconNodes from other libraries like Lucide Lab.
It also reduces the bundle size by removing unnecessary code

@ericfennis ericfennis changed the title fix: Support for iconNodes from other libs like Lab fix(lucide): Support for iconNodes from other libs like Lab Jan 24, 2025
@github-actions github-actions bot added the 🧳 lucide package About the lucide package label Jan 24, 2025
@ericfennis ericfennis merged commit eb15856 into main Feb 7, 2025
5 checks passed
@ericfennis ericfennis deleted the support--regular-iconNodes-lucide branch February 7, 2025 14:44
@MasterGordon
Copy link

MasterGordon commented Feb 12, 2025

Hi @ericfennis , I've just updated lucide to the latest version. It seems like with this change breaks normal usage of createElement with just lucide.

https://lucide.dev/guide/packages/lucide#custom-element-binding

import { createElement, Menu } from 'lucide';

const menuIcon = createElement(Menu);
//                     ^-- Type and Runtime error here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧳 lucide package About the lucide package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Lucide Lab custom icons doesn't work as documented for vanilla JS
2 participants