Skip to main content

Quick Start Guide

Get React Icons up and running in your project with this step-by-step guide.

Prerequisites

  • React 16.3 or higher
  • npm, yarn, or pnpm
1

Install React Icons

Install the package using your preferred package manager:
2

Import and use an icon

Import icons from their respective packs and use them as React components:
App.jsx
Icons are imported from sub-packages like /fa (Font Awesome), /md (Material Design), /hi2 (Heroicons 2), etc.
3

Customize your icons

Icons accept props like size, color, className, and all standard SVG attributes:

Complete Example

Here’s a complete working example using multiple icon libraries:
App.jsx

Icon Props Reference

All icons support these props: Plus all standard SVG attributes: onClick, onMouseEnter, aria-label, etc.

Using IconContext for Global Styling

Configure icons globally using IconContext.Provider:
App.jsx
Individual icon props override the context values.

Import Patterns

React Icons organizes icons by library with predictable import patterns: See all available libraries for the complete list.

Common Use Cases

Next Steps

Core Concepts

Learn about import patterns and icon organization

Customization

Discover all the ways to customize icons

Browse Icons

Explore 40,000+ icons from 30+ libraries

API Reference

View complete API documentation