1. License
“Lucide is totally free for commercial use and personal use, this software is licensed under the ISC License.”
Free for commercial and personal use under the ISC License.
github.com/lucide-icons/lucide/blob/main/README.md3. Used by agents' projects
Dependency in 1,255 public GitHub projects set up for AI coding agents that we scanned (20.1%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
lucide.dev/llms.txtFrom the package registry and GitHub, checked daily; card checked Nov 10, 2026. Tap a verdict to see its source.How we checkedReport an error
What Lucide React does
lucide-react is the free React package of the Lucide icon set. Each icon, like a house, a bell or a check mark, is a ready piece you put on a screen and size or color with a setting. Only the icons you use end up in your app.
What people build with it
Icon buttons in a toolbar
An editor toolbar or a card menu shows small icon-only buttons such as bold, link or undo. Each button gets a spoken label for screen reader users.
Colored status messages
Payment, warning and error notes each get a matching icon in green, amber or red next to the text.
One look for a whole panel
A dark settings panel needs all its icons a bit smaller, lighter and thinner; you set that once around the panel.
Icons chosen by name in an admin panel
Editors type an icon name such as "rocket" for a feature block, the name is saved, and the page shows that icon.
Extra icons in the same style
You need an icon the main set lacks; the Lucide Lab collection or your own drawing shows up with the same size and line settings.
Moving off react-feather
An older app uses react-feather icons; you switch the import line and keep almost every icon name.
Lucide React popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Lucide React is used
- Lucide React is a dependency in 1,255 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (25.8% of the 4,867 JavaScript/TypeScript ones), #1 of 230 in ui components and icons.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 5,149; those are left out of every share on this page.
- The most used alternative in our scan is React Icons (174 projects).
- Projects that use it most often also use clsx (82.2%), Tailwind Merge (81.0%), Class Variance Authority (74.9%).
- It is more common in projects set up for Roo Code (30.6%) than for OpenAI Codex (16.2%).
By coding agent
Often used with
Lucide React in practice
Strengths
The docs say Lucide is built with ES Modules and each icon can be imported as a React component. Only the icons you import are included, and the rest are tree-shaken away.
The defaults are <code>size</code> 24, <code>color</code> <code>currentColor</code>, <code>strokeWidth</code> 2 and <code>nonScalingStroke</code> false. Because each icon renders as an SVG element, standard SVG attributes also work as props.
The React docs cover global styling with CSS or with a Lucide context provider, so you do not have to repeat the same props on every icon.
The README lists official packages for many frameworks and a Figma plugin. Designers and developers can draw from the same set of icons.
Watch out for
Icons such as Github, Gitlab, LinkedIn, Instagram, Facebook, Figma and Slack are gone in v1. The docs recommend each brand's official SVG or Simple Icons instead. The README says brand logos will not be accepted in the future either.
The docs say fills are not officially supported. You can set the <code>fill</code> attribute, but only on certain icons.
This applies to the vanilla <code>lucide</code> package on unpkg. The docs advise pinning a specific version instead of <code>@latest</code>, because a new release can break your app.
Import your first icon
import { Camera } from 'lucide-react' ;
// Usage
const App = () => {
return < Camera />;
};
export default App;More about Lucide React
Funding
- GitHub Sponsors: https://github.com/lucide-icons
- Open Collective: https://opencollective.com/lucide-icons
- thanks.dev: https://thanks.dev/u/gh/lucide-icons
- 2 GitHub sponsors
Head to head
- Lucide React vs React Icons used together in 118 projects
- Lucide React vs Heroicons used together in 51 projects
Packages around it
- clsx: class name joining
- tailwind-merge: Tailwind class conflict merging
- class-variance-authority: component variant classes
- tailwindcss: utility-first CSS
- @radix-ui: headless UI primitives
- react: UI library
More in UI components and icons
Alternatives
Lucide React This page
Pick react-icons when you want many popular icon packs, not one matching style, behind one React import.
Pick Phosphor when each icon should come in several weights, from thin to bold and filled.
Pick Heroicons for a smaller set from the Tailwind team with outline and solid versions.
Get started
Tell your AI assistant
“Add lucide-react@1.70.0 icons to our React app; import each icon by name, put aria-label on icon-only buttons, use LucideProvider for shared size and color, and take brand logos from Simple Icons.”
Add the package to your React project.
npm install lucide-reactImport an icon by name and use it like any component.
import { Camera } from 'lucide-react'; // Usage const App = () => { return <Camera />; }; export default App;Change size, color and line width with props (defaults 24, the text color and 2).
const App = () => { return <Camera size={48} color="red" strokeWidth={1} />; };
Rules for your agent
## Lucide React
- Install with `npm install lucide-react` (or the pnpm, yarn or bun equivalent).
- Import icons by name, e.g. `import { Camera } from 'lucide-react'`. The docs say only imported icons are bundled and the rest are tree-shaken away.
- Style icons with `size` (default 24), `color` (default `currentColor`), `strokeWidth` (default 2) and `nonScalingStroke` (default false). Any standard SVG attribute can also be passed as a prop.
- `color` defaults to `currentColor`, so an icon can take its parent element's text color.
- To style every icon at once, use CSS or the Lucide context provider instead of repeating props.
- Do not use brand icons. Github, LinkedIn, Slack and others were removed in v1. Use the brand's official SVG or Simple Icons.
- For more detail, read `https://lucide.dev/llms.txt` or `/llms-full.txt`.
Mistakes to avoid
Brand icons were removed in version 1; in our check of 1.70.0 there is no Github export.
absoluteStrokeWidth is marked deprecated; nonScalingStroke keeps the line width the same at any size.
Icons are hidden from screen readers by default, so the button needs its own label.
DynamicIcon brings every icon into the build and loads each one separately.
CSS rules override the icon props.
Questions
Will all 2,000 icons make my app heavy?
No. Only the icons you import end up in your bundle.
How do I make every icon a bit smaller or thinner?
Wrap that part of the app in LucideProvider, or style the lucide class in your CSS. CSS overrides the props of single icons, the provider does not.
Why do Home and House both work?
Some icons have several names; Home, HomeIcon and LucideHome are the same icon as House.
Can I use it in a paid product or a client site?
Yes. The ISC license allows any use with or without a fee; keep the notice in copies of the code.
Which React versions does it work with?
React 16.5.1 and newer, up to React 19.