React Icons

SVG icon components for React, bundling 40+ popular icon packs behind one consistent import syntax.

Library
npm
v5.7.0
12,684 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
69 /100 Good
Development Activity 64
Maintenance 44
Community 68
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
78 /100 Good
Architecture 82
Code Quality 62
Innovation 80
Learning Curve 88

React Icons packages dozens of popular icon libraries — Font Awesome, Material Design, Ionicons, Feather, Bootstrap Icons, Tabler, Phosphor, and more — as tree-shakeable React components under a single npm dependency. Each icon set lives at its own import path (react-icons/fa, react-icons/md, and so on), so bundlers only include the specific icons a project actually imports rather than the whole library.

Icons render through a shared IconBase component that maps standard SVG attributes plus size, color, and title props onto the underlying markup, and an optional IconContext.Provider lets teams set defaults like color and className globally without repeating props on every icon. With over 8 million weekly npm downloads and 12,600+ GitHub stars, it has become a default choice for teams that want broad icon-set coverage without maintaining separate SVG assets or icon fonts.

What You Get

  • Access to 40+ icon packs (Font Awesome 5/6, Material Design, Ionicons, Feather, Bootstrap Icons, Tabler, Phosphor, Simple Icons, and more) totaling tens of thousands of icons
  • Per-icon-set subpath imports (react-icons/fa, react-icons/md, etc.) that keep bundles small since only the icons you import are included
  • A shared IconContext for setting default color, size, className, and style across every icon in a subtree
  • Full TypeScript types for every icon component and the IconBase props

Common Use Cases

  • Adding consistent UI icons (buttons, nav, status indicators) to a React app without designing or hand-optimizing SVGs
  • Swapping between icon packs (e.g. migrating from Font Awesome to Feather) without changing component usage patterns
  • Building admin dashboards, marketing sites, and design-system component libraries that need broad icon coverage out of the box

Under The Hood

Architecture React Icons is a Yarn/Lerna monorepo whose core publishable package lives at packages/react-icons. At publish time, scripts/fetcher.ts downloads SVG source from each upstream icon project (Font Awesome, Ionicons, Material Design, etc.), scripts/build.ts (via esbuild) parses and optimizes each SVG with cheerio/svgo into a serializable IconTree, and per-icon-set entry points (lib/fa/index.mjs, lib/md/index.mjs, …) are emitted so react-icons/fa only pulls in Font Awesome’s icons. At runtime, every icon is a thin function produced by GenIcon(data) in src/iconBase.tsx, which recursively converts the IconTree into React elements and renders them inside a shared IconBase component; IconBase reads an optional IconContext.Provider (src/iconContext.tsx) for ambient color/size/className/style defaults and merges those with per-icon props before emitting the final <svg>. Tech Stack The package is written in TypeScript and built with esbuild (esbuild-register for the build scripts themselves); SVG fetching/parsing during the build step uses cheerio and svgo, with find-package/glob/p-queue handling monorepo file discovery. React is a peer dependency pinned only to "*", and sideEffects: false plus per-icon-set exports drive tree-shaking. The repo also ships auxiliary workspaces — a CRA demo app, a webpack4 compatibility test app, a TypeScript type-check app (ts-test), and an Astro-based docs/preview site — used to validate the built output across bundlers and frameworks. Code Quality There is no dedicated unit-test suite for the icon-generation or rendering logic itself; the closest coverage is default Create-React-App snapshot tests in the demo workspaces, which mostly assert the demo app renders. Correctness instead leans on a strict, generated TypeScript surface (IconTree, IconBaseProps, IconType), a standalone type-check script run in CI (tsc -p ./scripts/tsconfig.json), an ESLint config (eslint.config.cjs), and a check.ts build script that verifies fetched icon sets match the expected manifest before publishing. API Design The public API is deliberately minimal: each icon is a drop-in React component named in PascalCase with a two-letter icon-set prefix (e.g. FaBeer, MdHome), accepting the same props across every icon set — standard SVG attributes plus size, color, and title. Global theming is opt-in via <IconContext.Provider value={{ color, size, className, style }}>, avoiding prop-drilling for common cases. Getting started requires a single import line and no build configuration, and the maintained docs site plus the README’s per-icon-set table (license, version, icon count) make it easy to discover which pack to use.

Used by 64 apps in this directory

TypeScript
91%
Apache 2.0

Helicone

AI Development · Analytics · Monitoring

6,235

An open-source AI gateway and LLM observability platform that routes requests to 100+ models while logging cost, latency, and full traces for every call.

View details
74
Repo Health
81
Technical
65
Dependency
Built with
TypeScript 91%
Updated 5 days ago
TypeScript
71%
Other

highlight.io

Analytics · Developer Tools · Monitoring

9,384

Open-source full-stack monitoring that unifies session replay, error tracking, logging, and distributed tracing so you can stop context-switching between tools.

View details
76
Repo Health
78
Technical
65
Dependency
Built with
TypeScript 71%
Go 16%
Updated 6 days ago
TypeScript
99%
MIT

GraphQL Hive

Developer Tools · Devops · Monitoring

483

Open-source GraphQL schema registry and observability platform with breaking change detection, federation support, and CI/CD integration for teams of any size.

View details
90
Repo Health
81
Technical
68
Dependency
Built with
TypeScript 99%
Updated 6 days ago
JavaScript
99%
GPL 3.0

homepage

Monitoring · Productivity

33,326

A fast, fully static, and secure self-hosted startpage with Docker service discovery and integrations for over 160 services.

View details
91
Repo Health
86
Technical
71
Dependency
Built with
JavaScript 99%
Updated 5 days ago
TypeScript
100%
Apache 2.0

ILLA Builder

Design Tools · Developer Tools · Low Code Platforms

12,333

Open-source low-code platform for building internal tools with drag-and-drop UI, reactive data bindings, and real-time collaboration.

View details
55
Repo Health
71
Technical
63
Dependency
Built with
TypeScript 100%
Updated 5 months ago
TypeScript
96%
Other

Infisical

Devops · Security

29,961

The open-source platform for secrets, certificates, privileged access, and AI agent security — all in one self-hostable system.

View details
91
Repo Health
84
Technical
64
Dependency
Built with
TypeScript 96%
Updated 5 days ago
Rust
56%
Other

Jan

AI Assistants

45,052

Run LLMs 100% locally with full privacy, or connect to cloud AI — your machine, your data, your control.

View details
90
Repo Health
81
Technical
65
Dependency
Built with
Rust 56%
TypeScript 40%
Updated 5 days ago
TypeScript
66%
MIT

Jitsu

Data Engineering

5,110

Open-source, fully-scriptable data ingestion engine that streams events from web, apps, and APIs to any data warehouse in real time.

View details
89
Repo Health
79
Technical
66
Dependency
Built with
TypeScript 66%
Go 32%
Updated 6 days ago
TypeScript
96%
AGPL 3.0

Kan

Project Management

5,825

An open-source, self-hostable Kanban board built as a modern Trello alternative with team workspaces, board permissions, and Trello import.

View details
86
Repo Health
78
Technical
67
Dependency
Built with
TypeScript 96%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers