Install React Icons

Add popular icons to your React projects. Include only the icons that your project is using.

7th July 2022

Time to read: 1 min

React Logo

Install

npm install react-icons --save

Example Usage

import { FaBeer } from "react-icons/fa";
class Question extends React.Component {
  render() {
    return <h3> Lets go for a  <FaBeer />?</h3>
  }
}

View the documentation for further usage examples and how to use icons from other packages. NOTE: each Icon package has it's own subfolder under react-icons you import from.

For example, to use an icon from Material Design, your import would be: import { ICON_NAME } from 'react-icons/md';

Icons

Icon LibraryLicenseVersionCount
Font AwesomeCC BY 4.0 License5.15.41612
Ionicons 4MIT4.6.3696
Ionicons 5MIT5.5.01332
Material Design iconsApache License Version 2.04.0.03650
TypiconsCC BY-SA 3.02.1.2336
Github Octicons iconsMIT8.5.0184
FeatherMIT4.28.0286
Game IconsCC BY 3.03.04040
Weather IconsSIL OFL 1.12.0.12219
DeviconsMIT1.8.0192
Ant Design IconsMIT4.2.1789
Bootstrap IconsMIT1.5.01846
Remix IconApache License Version 2.02.5.02271
Flat Color IconsMIT1.0.2329
Grommet-IconsApache License Version 2.04.6.2615
HeroiconsMIT1.0.4460
Simple IconsCC0 1.0 Universal5.16.02024
IcoMoon FreeCC BY 4.04.0491
BoxIconsCC BY 4.02.0.9757
css.ggMIT2.0.0704
VS Code IconsCC BY 4.00.0.23383
Tabler IconsMIT1.68.01978

Why React SVG components instead of fonts?

SVG is supported by all major browsers. With react-icons, you can serve only the needed icons instead of one big font file to the users, helping you to recognize which icons are used in your project.

Documentation

GitHub

API Reference