Files
lucide/packages/solid
Davlatjon Sh d8b5ee75e8 fix(packages): ship ESM type declarations for Solid packages (#5263)
`lucide-solid` and `@lucide/solid` have no `"type": "module"` and point every
`types` export condition at `.d.ts` files, so TypeScript's Node16/NodeNext
resolution reads the declarations as CommonJS. ESM consumers then get the
module object instead of the component for per-icon default imports
(`import Camera from '@lucide/solid/icons/camera'`), failing with TS2604/TS2322.

Emit `.d.mts` declarations next to the existing `.d.ts` files (rollup rewrites
their relative imports to `.mjs`) and select them via a nested `import`
condition under `types`, as lucide-react already does with `.d.mts` files.
The `.d.ts` files, top-level `types` field and runtime conditions are unchanged.
2026-11-23 16:03:02 +01:00
..
2026-11-02 12:21:25 +01:00

Lucide icon library for Solid 2 applications.

Lucide icon library for Solid 2 applications.

npm NPM Downloads License

About · Icons · Documentation · License

Lucide Solid

Implementation of the Lucide icon library for Solid 2 applications.

Installation

pnpm add @lucide/solid
npm install @lucide/solid
yarn add @lucide/solid
bun add @lucide/solid

@lucide/solid is only for Solid 2, for Solid 1 use the lucide-solid package. Solid 2 is still a release candidate.

Documentation

For full documentation, visit lucide.dev

Community

Join the Discord server to chat with the maintainers and other users.

License

Lucide is licensed under the ISC license. See LICENSE.

Sponsors

Powered by Vercel

Bronze 🥉

Sourcegraph – Understand, fix, and automate across your codebase with Sourcegraph's code intelligence platform    Zephyr Cloud

Other contributors 💸

You can find all our past and non-recurring financial contributors at our Open Collective page.