# React Icons — card for AI agents

Popular icon packs imported as React components with ES6.

Category: UI components and icons · npm package `react-icons` · latest version 5.7.0 (checked 2026-11-01)
Install: `npm install react-icons`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## React Icons
- Install `react-icons`. Import icons by name from the set's subfolder, for example `import { FaBeer } from "react-icons/fa"`.
- Do not use the old v2 path style `react-icons/lib/fa/beer`. It was replaced in v3.
- Put shared `color`, `size`, `className` or `style` on an `IconContext.Provider` instead of repeating props on every icon. This requires React 16.3 or higher.
- Pass `title` when an icon needs an accessible description.
- When icons sit inline with text, add `verticalAlign: 'middle'` through `IconContext`. Since v3 it is not applied automatically.
- Do not add `@types/react-icons`. Types are built in.
- Check the license of each icon set you use. Some sets are CC BY or CC BY-SA, not MIT.

## What it is
- React Icons is one npm package of React components drawn from many icon sets. The repository describes itself as "svg react icons of popular icon packs". It was created on 2015-10-23 and is MIT licensed. The latest release is v5.7.0, published 2026-06-30.
- Each icon set has its own import path. Font Awesome icons come from `react-icons/fa` and Material Design icons from `react-icons/md`. The README says the package "utilizes ES6 imports that allows you to include only the icons that your project is using." The site lists 31 sets, from Ant Design Icons to Weather Icons. Phosphor Icons is the largest, at 9072 icons.
- For projects that "grow in size", the docs offer a second package, `@react-icons/all-files`, where each icon has its own file path, such as `@react-icons/all-files/fa/FaBeer`. The site calls it "Suitable for MeteorJS, Gatsbyjs etc." and states the trade-off: it "takes a long time to install the package."

## Caveats
- MIT package, mixed icon licenses: The package code is MIT, but the icons come from other projects. The README's table includes sets under CC BY 4.0, CC BY-SA 3.0, CC BY 3.0, MPL-2.0, SIL OFL 1.1 and Apache 2.0, among others. Check the license of each set you ship.
- The all-files package lags behind: The README warns that the `@react-icons/all-files` option has not had a new release for some time. It also names a trade-off for this method: "it takes a long time to install the package."
- No vertical centering since v3: Since version 3, icons no longer get `vertical-align: middle`. To line them up with text, set it yourself through `IconContext`, either as an inline style or as a `className`.

## Numbers (AgentGid data)
- Gid Score: 75.3 (#196 of all tools, 13 of 230 in its category)
- Used in 174 public projects set up for AI coding agents (2.8%)
- Downloads last week: 12,037,670 (as of 2026-11-24), +34.7% over 4 weeks
- GitHub stars: 12,700 (as of 2026-11-24)
- Last push: 2026-10-23

## Often used with
React 99.4%, Next.js 69.0%, clsx 70.1%, Lucide React 67.8%, Tailwind Merge 64.4%, Radix UI 52.3%

## Checked alternatives (same job)
- Lucide React: https://agentgid.com/tools/lucide-react/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/react-icons/
- Homepage: https://github.com/react-icons/react-icons#readme
- Repository: https://github.com/react-icons/react-icons
- Source: https://github.com/react-icons/react-icons#readme
- Source: https://github.com/react-icons/react-icons
- Source: https://github.com/react-icons/react-icons/releases
- Source: https://react-icons.github.io/react-icons/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
