Releases: lucide-icons/lucide
Version 0.479.0
What's Changed
- feat(@lucide/svelte): Lucide svelte 5 package by @ericfennis in #2753
Full Changelog: 0.478.0...0.479.0
Version 0.478.0
What's Changed
- ci(pr-comment): Fix icon preview comment on PRs by @ericfennis in #2854
- fix(ci): run lint pr title on title change by @jguddas in #2872
- fix(metadata): name change reflected in contributions by @AnnaSasDev in #2866
- fix(icons): changed
brackets
icon by @jguddas in #2863
Full Changelog: 0.477.0...0.478.0
New icons 0.477.0
Fixes and new icons 0.476.0
Fixes
- fix(lucide-react): Revert exports property package.json, fixing edge worker environments. by @ericfennis in #2814
- fix(lucide): Lucide create element function returning SVG Element by @ericfennis in #2816
New icons π¨
shield-user
(#2608) by @sebinemeth
Modified Icons π¨
New icons 0.475.0
New icons π¨
circle-small
(#2607) by @jamiemlawmars-stroke
(#2607) by @jamiemlawmars
(#2607) by @jamiemlawnon-binary
(#2607) by @jamiemlawtransgender
(#2607) by @jamiemlawvenus-and-mars
(#2607) by @jamiemlawvenus
(#2607) by @jamiemlaw
New icons 0.474.0
New icons 0.473.0
New icons 0.472.0
New icons π¨
battery-plus
(#2693) by @Footagesusmap-plus
(#2697) by @Seanw265
What's Changed
- lucide-svelte: Make sure license ends up in SvelteKit bundles by @Lettnald in #2728
- lucide-react: Fixes aliases imports.
Full Changelog: 0.471.1...0.472.0
Hotfix Lucide React exports
What's Changed
- fix(lucide-react) Adds type module in package.json by @ericfennis in #2731
Dynamic Icon component Lucide React and new icons 0.471.0
New Dynamic Icon Component (lucide-react)
This is an easier approach than the previous dynamicIconImports
we exported in the library. This one supports all environments.
We removed the examples in the docs of how you can make a dynamic icon yourself with a dedicated DynamicIcon component.
This one fetches the icon data itself and renders it instead of fetching the Icon component from the library.
This makes it more flexible with all the frontend frameworks and libraries that exist for React.
π¨
Not recommended for regular applications that work fine with the regular static icon components.
Using the dynamic icon component increases build time, separate bundles, and separate network requests for each icon.
How to use
DynamicIcon
is useful for applications that want to show icons dynamically by icon name, for example when using a content management system where icon names are stored in a database.
const App = () => (
<DynamicIcon name="camera" color="red" size={48} />
);
Possible Breaking changes
We have switched to the "exports" property in package.json
. This can cause issues if you have directly imported scripts from the package. Please open an issue if we need to refine this export map.