* Allow string values for `size` and `strokeWidth` in icon contexts
The global icon context types declare `size` and `strokeWidth` as `number`,
while the component props they supply defaults for accept `number | string`.
The context value is passed through to the component untouched, so a CSS
length that works on a single icon is rejected when set as a default:
setLucideProps({ size: '1em' }); // Type 'string' is not assignable to 'number'
<Moon size="1em" /> // same value, same code path, no error
* Accept a string `size` on vue icon components
@lucide/vue types the component prop as `size?: 24 | number`, so it rejects the
CSS lengths its own `strokeWidth?: number | string` accepts, and that every other
framework accepts. The value goes straight to the `width`/`height` attributes,
so a string already works at runtime.
* Allow string `size` and `strokeWidth` in the icon context
Copilot's PR comment correctly surfaced a gap in the PR - the same type
bug exists in the lucide-react-native project and wasn't fixed there.
Same narrowing as the other framework contexts: `LucideProps` accepts
`size?: string | number`, and `strokeWidth` resolves to react-native-svg's
`NumberProp` (`string | number`), but the context and `LucideProviderProps`
declared both as `number`. `Icon.ts` passes the context value straight through
— `width: width ?? size ?? contextSize` — so nothing downstream needs a number.
* Don't emit NaN stroke width for non-numeric absolute lengths
`absoluteStrokeWidth` scales the stroke by `Number(size)`, so a CSS unit such
as `1em` produced `NaN` and a size of `0` produced `Infinity` – both invalid as
a `stroke-width` attribute. Fall back to the unscaled stroke width whenever the
conversion isn't finite, so the deprecated prop degrades rather than breaking
the rendered icon.
* fix(packages/angular): allow a string `strokeWidth` in the global config
`LucideConfig` already types `size` as `string | number` but left `strokeWidth`
as `number`, while `LucideIconBase` accepts `string | number` for both and
passes the configured value straight to the shared builder. So
`provideLucideConfig({ strokeWidth: '1em' })` was rejected for no reason.
* refactor(shared): keep absolute stroke scaling inside its branch
The finite-value fallback added in b65ee945 computed the scaled width before
testing `absoluteStrokeWidth`, so the default path paid for three `Number`
conversions and a division it never used. Start from the unscaled width and
overwrite it only when scaling both applies and yields a finite result, which
also states the rule more directly.
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
* feat(icons): add folder plus corner
* fix(icons): use standard folder shape for folder-plus-corner
Align the folder outline with other folder icons and truncate the
bottom-right corner for the plus badge, matching file-*-corner icons.
* fix(icons): use standard folder shape for folder-plus-corner
Address review feedback to keep the folder shape consistent with other
folder icons by adopting the standard "cut" folder outline (as used by
folder-cog/folder-heart) with the plus glyph in the lower-right corner.
* fix(icons/folder-plus-corner): closed gaps
* Adjust svg and metadata
* Add EOF
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
Co-authored-by: Karsa <contact@karsa.org>
* feat(site): Preselect external libraries via `?library=` URL param
Opening /icons/?library=lab now enables the Lab library on load, and
toggling the checkbox keeps the address bar in sync, so the current
selection can be shared as a link.
- Repeated params (?library=a&library=b) and comma lists are accepted;
unknown values and duplicates are dropped.
- The param is applied in onMounted rather than during setup, so the
fetch watchers already exist and hydration doesn't mismatch on the
checkbox.
- The URL is updated with replaceState, preserving history.state and
other params such as ?search=.
* fix(site): Keep `?library=` across navigation and the icon drawer
The library param was only read on the first mount and was dropped by
the icon drawer, so it stopped matching the selection:
- /icons/?library=lab -> Categories -> uncheck Lab -> Back restored
?library=lab in the URL but left nothing selected.
- Opening and closing an icon drawer on desktop kept Lab selected but
removed ?library= from the URL, so sharing or refreshing lost it.
Now the selection is reconciled with the URL on every mount and on
popstate: a valid ?library= wins, and when the URL has none but a
library is selected, the param is written back with replaceState.
The drawer's pushState calls in IconItem.vue and IconsOverview.vue
keep the param via a new setLibraryParams helper.
* Add localstorage
* Refactor code
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
* feat(icons): add paint-gun icon
Signed-off-by: Abdul karim mia <abdulkarimmia.dev@gmail.com>
* fix(icons): update paint-gun SVG geometry and use-cases per review
Signed-off-by: Abdul karim mia <akmia51@gmail.com>
* Adjust metadata
---------
Signed-off-by: Abdul karim mia <abdulkarimmia.dev@gmail.com>
Signed-off-by: Abdul karim mia <akmia51@gmail.com>
Co-authored-by: Abdul karim mia <abdulkarimmia.dev@gmail.com>
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
* Add `circle-person-arms-wide`
* Rename to `circle-person-arms-spread`
* Update SVG paths and circle position in icon
* Apply suggestion from @karsa-mistmere
* Apply suggestion from @karsa-mistmere
---------
Co-authored-by: Karsa <contact@karsa.org>
* feat(icons): added `warehouse-waves` icon
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* style(icons): format SVG with Prettier and add `lakehouse` to custom words
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(spelling): add only `lakehouse` to custom words
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(metadata): apply maintainer suggestion for `warehouse-waves`
Co-authored-by: Eric Fennis <ericfennis@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Eric Fennis <ericfennis@users.noreply.github.com>
* perf(docs): cache name parts when generating related icons
* perf(site): reuse icon search indexes between queries
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
* feat: add Nigerian Naira currency icons
- Add badge-naira (badge with Naira symbol)
- Add circle-naira-sign (circled Naira symbol)
- Add naira-sign (standalone Naira symbol)
- Add receipt-naira (receipt with Naira symbol)
- Add alternative single-line variants for design flexibility
- Expand currency support for Nigerian markets
These icons follow existing currency icon patterns and meet all Lucide design guidelines.
* fix: redesign Naira icons to meet 2px gap guidelines
- Increase horizontal line spacing from 2px to 4px (y=10 to y=14)
- Remove alternative variants (not allowed per Lucide guidelines)
- Keep 4 main variants: badge, circle, standalone, receipt
- Now fully compliant with 2px minimum gap requirement
- All intersections maintain proper clearance for stroke width
This addresses the design guideline violation feedback and ensures
all gaps between strokes can fit a 2px-wide circle as required.
* Update naira-sign adn remove badge and circle variant
* Revert deletion
* rename icon
---------
Co-authored-by: Eric <eric.fennis@gmail.com>
* docs(static): remove broken <img> sprite fragment example
Symbols in the sprite only render through <use>, so sprite.svg#name in
an <img> tag shows nothing. Point readers to the per-icon SVG files for
<img> usage instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FfpNbRB7XQ9kggfSA1
* feat(lucide-static): add icon aliases to the SVG sprite
Aliases were only written as separate SVG files, so `<use href="#home" />`
did not work with the sprite. Each alias is now added as a symbol that
references the original icon's symbol with a nested `<use>`, instead of
duplicating its elements.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FgapYRzb6uRJnZpW7N
* Adjusted documentation
---------
Co-authored-by: Claude <noreply@anthropic.com>