Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Lucide React

Lucide line icons as React components.

UI components and iconsNPM

GitHubWebsite

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.md

From 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

86 / 100
Gid Score, #33 overall
144M
downloads a week, npm
26K
GitHub stars
1,255
agent projects use it
Lucide React: downloads per weeknpm, lucide-react 143,862,198
Lucide React: GitHub starslucide-icons/lucide 25,966

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

652 projects, 19.9%
613 projects, 25.1%
573 projects, 18.9%
100 projects, 21.1%
85 projects, 30.5%
76 projects, 16.2%
60 projects, 17.5%
34 projects, 30.6%

Often used with

In 82.2% of its projects
In 81.0% of its projects
In 74.9% of its projects
In 98.8% of its projects
In 96.3% of its projects
In 61.6% of its projects
In 65.5% of its projects
In 44.9% of its projects

Lucide React in practice

Strengths

Unused icons never reach the bundle

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.

Four props plus any SVG attribute

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.

Style every icon in one place

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.

One icon set across frameworks and Figma

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

No brand logos, and v1 removed the old ones

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.

Filled icons are a workaround

The docs say fills are not officially supported. You can set the <code>fill</code> attribute, but only on certain icons.

Pin the version when loading the core package from a CDN

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

See all

Head to head
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

ISCGid 86144M/wk

React Icons

Pick react-icons when you want many popular icon packs, not one matching style, behind one React import.

MITGid 7512M/wk

Phosphor Icons

Pick Phosphor when each icon should come in several weights, from thin to bold and filled.

Heroicons

Pick Heroicons for a smaller set from the Tailwind team with outline and solid versions.

MITGid 736.7M/wk

Compare Lucide React with another tool

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.”

  1. Add the package to your React project.

    npm install lucide-react

    From lucide.dev/guide/react/getting-started.md

  2. Import an icon by name and use it like any component.

    import { Camera } from 'lucide-react';
    // Usage
    const App = () => {
      return <Camera />;
    };
    export default App;
    

    From lucide.dev/guide/react/getting-started.md

  3. 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} />;
    };
    

    From lucide.dev/guide/react/getting-started.md

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## 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

import { Github, Facebook, Slack } from 'lucide-react'
Take brand logos from the brand's own files or from Simple Icons

Brand icons were removed in version 1; in our check of 1.70.0 there is no Github export.

<House absoluteStrokeWidth size={48} />
<House nonScalingStroke size={48} />

absoluteStrokeWidth is marked deprecated; nonScalingStroke keeps the line width the same at any size.

<button><Trash2 /></button> with no label, or aria-label put on the icon inside a button
<button aria-label="Delete file"><Trash2 /></button>

Icons are hidden from screen readers by default, so the button needs its own label.

Using DynamicIcon for icons whose names are known when you write the code
Import those icons directly; keep DynamicIcon for names that come from data

DynamicIcon brings every icon into the build and loads each one separately.

A global .lucide { width: 20px } rule plus size={32} on one icon, expecting the prop to win
Use LucideProvider for shared defaults when single icons must keep their own size, color or strokeWidth

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.

AgentGid articles about Lucide React

All guides