Packages Update! 📦 v0.170.0 #1127
Closed
ericfennis
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New feature:
absoluteStrokeWidthoptionAvailable for:
lucide-reactlucide-vuelucide-vue-nextlucide-sveltelucide-angularlucide-solidlucide-react-nativelucide-preactIntroducing
absoluteStrokeWidth, an option to control the behavior of scalingstrokeWidthin icons. A new option to control the look of Lucide icons.By default, scaling up SVG icons will cause the
strokeWidthto scale with theviewBoxset on the SVG icon.Setting
absoluteStrokeWidthtotrue, thestrokeWidthwill remain the same size visually.Visualised example
Disabled (Default, Current behavior, SVG default behavior)
absoluteStrokeWidth: falseEnabled (keeping the set strokeWidth in pixels)
absoluteStrokeWidth: trueReact Code Example
Update on
lucide-angularThe package for angular got a similar API as the other packages. This means it got the same options to customize the look of Lucide Icons as the other packages.
Fixed SSR issues
The package now supports SSR, so you can use Lucide icons in your Angular application when using SSR.
Deprecations
The exported types
IconData,IconNode, andIconshave been deprecated in favor of the less genericLucideIconData,LucideIconNode, andLucideIcons. They will still work for now, but be sure to update your code, as they will be removed in v1.0.Breaking changes
The
createElementhelper method has been removed since its usage broke SSR and the TrustedHTML support.Bugs
If you experienced any bugs related to this update, please open an issue.
This discussion was created from the release Packages Update! 📦 v0.170.0.
Beta Was this translation helpful? Give feedback.
All reactions