{
 "kind": "tool",
 "slug": "lucide-react",
 "path": "tools/lucide-react/",
 "name": "Lucide React",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "UI components and icons",
   "tools/ui-components/"
  ]
 ],
 "lead": "Lucide line icons as React components.",
 "chips": [
  {
   "label": "UI components and icons",
   "path": "tools/ui-components/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install lucide-react"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/lucide-icons/lucide"
  },
  {
   "label": "Website",
   "href": "https://lucide.dev"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "ISC",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "Lucide is totally free for commercial use and personal use, this software is licensed under the ISC License.",
   "note": "Free for commercial and personal use under the ISC License.",
   "src": "https://github.com/lucide-icons/lucide/blob/main/README.md"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 24, 2026. ",
   "src": "https://github.com/lucide-icons/lucide"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1,255 projects",
   "status": "info",
   "sub": "#1 of 230 in its category",
   "note": "Dependency in 1,255 public GitHub projects set up for AI coding agents that we scanned (20.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://lucide.dev/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Lucide React does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Icon buttons in a toolbar",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Colored status messages",
       "text": "Payment, warning and error notes each get a matching icon in green, amber or red next to the text.",
       "idea": false
      },
      {
       "title": "One look for a whole panel",
       "text": "A dark settings panel needs all its icons a bit smaller, lighter and thinner; you set that once around the panel.",
       "idea": false
      },
      {
       "title": "Icons chosen by name in an admin panel",
       "text": "Editors type an icon name such as \"rocket\" for a feature block, the name is saved, and the page shows that icon.",
       "idea": false
      },
      {
       "title": "Extra icons in the same style",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Moving off react-feather",
       "text": "An older app uses react-feather icons; you switch the import line and keep almost every icon name.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Lucide React popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "86",
       "of": "/ 100",
       "l": "Gid Score, #33 overall"
      },
      {
       "n": "144M",
       "l": "downloads a week, npm"
      },
      {
       "n": "26K",
       "l": "GitHub stars"
      },
      {
       "n": "1,255",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Lucide React is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "652 projects, 19.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "613 projects, 25.1%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "573 projects, 18.9%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "100 projects, 21.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "85 projects, 30.5%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "76 projects, 16.2%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "60 projects, 17.5%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "34 projects, 30.6%",
       "v": "Roo Code",
       "path": "agents/roo-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 82.2% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 81.0% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 74.9% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 98.8% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 96.3% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 61.6% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 65.5% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 44.9% of its projects",
       "v": "Sonner",
       "path": "tools/sonner/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Lucide React in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Unused icons never reach the bundle",
       "v": "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."
      },
      {
       "l": "Four props plus any SVG attribute",
       "v": "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."
      },
      {
       "l": "Style every icon in one place",
       "v": "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."
      },
      {
       "l": "One icon set across frameworks and Figma",
       "v": "The README lists official packages for many frameworks and a Figma plugin. Designers and developers can draw from the same set of icons."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "No brand logos, and v1 removed the old ones",
       "v": "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."
      },
      {
       "l": "Filled icons are a workaround",
       "v": "The docs say fills are not officially supported. You can set the <code>fill</code> attribute, but only on certain icons."
      },
      {
       "l": "Pin the version when loading the core package from a CDN",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Import your first icon"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Jsx",
       "code": "import { Camera } from 'lucide-react' ;\n\n// Usage\nconst App = () => {\n  return < Camera />;\n};\n\nexport default App;"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Lucide React",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "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"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Lucide React vs React Icons",
         "note": "used together in 118 projects",
         "path": "tools/compare/lucide-react-vs-react-icons/"
        },
        {
         "text": "Lucide React vs Heroicons",
         "note": "used together in 51 projects",
         "path": "tools/compare/lucide-react-vs-heroicons/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "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"
       ]
      },
      {
       "title": "More in UI components and icons",
       "path": "tools/ui-components/",
       "items": [
        {
         "text": "Class Variance Authority",
         "path": "tools/class-variance-authority/"
        },
        {
         "text": "Radix UI",
         "path": "tools/radix-ui/"
        },
        {
         "text": "Sonner",
         "path": "tools/sonner/"
        },
        {
         "text": "cmdk",
         "path": "tools/cmdk/"
        },
        {
         "text": "React Day Picker",
         "path": "tools/react-day-picker/"
        },
        {
         "text": "Vaul",
         "path": "tools/vaul/"
        },
        {
         "text": "react-resizable-panels",
         "path": "tools/react-resizable-panels/"
        },
        {
         "text": "shadcn/ui",
         "path": "tools/shadcn/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Lucide React",
       "me": true,
       "facts": [
        "ISC",
        "Gid 86",
        "144M/wk"
       ]
      },
      {
       "name": "React Icons",
       "why": "Pick react-icons when you want many popular icon packs, not one matching style, behind one React import.",
       "path": "tools/react-icons/",
       "facts": [
        "MIT",
        "Gid 75",
        "12M/wk"
       ]
      },
      {
       "name": "Phosphor Icons",
       "why": "Pick Phosphor when each icon should come in several weights, from thin to bold and filled.",
       "path": "tools/phosphor-icons/",
       "facts": []
      },
      {
       "name": "Heroicons",
       "why": "Pick Heroicons for a smaller set from the Tailwind team with outline and solid versions.",
       "path": "tools/heroicons/",
       "facts": [
        "MIT",
        "Gid 73",
        "6.7M/wk"
       ]
      }
     ],
     "more": "Compare Lucide React with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Add the package to your React project.",
       "code": "npm install lucide-react",
       "src": "https://lucide.dev/guide/react/getting-started.md"
      },
      {
       "text": "Import an icon by name and use it like any component.",
       "code": "import { Camera } from 'lucide-react';\n// Usage\nconst App = () => {\n  return <Camera />;\n};\nexport default App;\n",
       "src": "https://lucide.dev/guide/react/getting-started.md"
      },
      {
       "text": "Change size, color and line width with props (defaults 24, the text color and 2).",
       "code": "const App = () => {\n  return <Camera size={48} color=\"red\" strokeWidth={1} />;\n};\n",
       "src": "https://lucide.dev/guide/react/getting-started.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Lucide React\n- Install with `npm install lucide-react` (or the pnpm, yarn or bun equivalent).\n- 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.\n- 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.\n- `color` defaults to `currentColor`, so an icon can take its parent element's text color.\n- To style every icon at once, use CSS or the Lucide context provider instead of repeating props.\n- Do not use brand icons. Github, LinkedIn, Slack and others were removed in v1. Use the brand's official SVG or Simple Icons.\n- For more detail, read `https://lucide.dev/llms.txt` or `/llms-full.txt`.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "import { Github, Facebook, Slack } from 'lucide-react'",
       "fix": "Take brand logos from the brand's own files or from Simple Icons",
       "why": "Brand icons were removed in version 1; in our check of 1.70.0 there is no Github export."
      },
      {
       "dont": "<House absoluteStrokeWidth size={48} />",
       "fix": "<House nonScalingStroke size={48} />",
       "why": "absoluteStrokeWidth is marked deprecated; nonScalingStroke keeps the line width the same at any size."
      },
      {
       "dont": "<button><Trash2 /></button> with no label, or aria-label put on the icon inside a button",
       "fix": "<button aria-label=\"Delete file\"><Trash2 /></button>",
       "why": "Icons are hidden from screen readers by default, so the button needs its own label."
      },
      {
       "dont": "Using DynamicIcon for icons whose names are known when you write the code",
       "fix": "Import those icons directly; keep DynamicIcon for names that come from data",
       "why": "DynamicIcon brings every icon into the build and loads each one separately."
      },
      {
       "dont": "A global .lucide { width: 20px } rule plus size={32} on one icon, expecting the prop to win",
       "fix": "Use LucideProvider for shared defaults when single icons must keep their own size, color or strokeWidth",
       "why": "CSS rules override the icon props."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Will all 2,000 icons make my app heavy?",
       "a": "No. Only the icons you import end up in your bundle.",
       "evidence": {
        "url": "https://lucide.dev/guide/react/getting-started.md",
        "quote": "This way, only the icons that are imported into your project are included in the final bundle."
       }
      },
      {
       "q": "How do I make every icon a bit smaller or thinner?",
       "a": "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.",
       "evidence": {
        "url": "https://lucide.dev/guide/react/advanced/global-styling.md",
        "quote": "Every icon has a class attribute applied called lucide."
       }
      },
      {
       "q": "Why do Home and House both work?",
       "a": "Some icons have several names; Home, HomeIcon and LucideHome are the same icon as House.",
       "evidence": {
        "url": "https://lucide.dev/guide/react/advanced/aliased-names.md",
        "quote": "Some icons have multiple names."
       }
      },
      {
       "q": "Can I use it in a paid product or a client site?",
       "a": "Yes. The ISC license allows any use with or without a fee; keep the notice in copies of the code.",
       "evidence": {
        "url": "https://lucide.dev/license.md",
        "quote": "Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies."
       }
      },
      {
       "q": "Which React versions does it work with?",
       "a": "React 16.5.1 and newer, up to React 19.",
       "evidence": {
        "url": "https://registry.npmjs.org/lucide-react/1.70.0",
        "quote": "\"peerDependencies\":{\"react\":\"^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0\""
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm lucide-react"
  ],
  [
   "Category",
   "UI components and icons"
  ],
  [
   "License",
   "ISC"
  ],
  [
   "Latest version",
   "1.55.0, October 10, 2026"
  ],
  [
   "On GitHub since",
   "June 2020"
  ],
  [
   "Gid Score",
   "85.9"
  ],
  [
   "Rank in category",
   "#1 of 230"
  ],
  [
   "GitHub",
   "lucide-icons/lucide"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Version 1 removed all brand icons, such as Github, Figma and Slack. Get logos from the brands themselves or Simple Icons.",
  "Icons are hidden from screen readers by default. An icon that carries meaning alone needs a label or a title.",
  "Loading icons by name (DynamicIcon) pulls every icon into the build. It can flash while loading, so use it only for names that come from data."
 ],
 "checked_line": "Read by AgentGid from 20 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/lucide-icons.png"
}