React Feather Icons

2.0.10 · active · verified Sun Apr 19

react-feather is a widely used React component library offering a collection of Feather icons, meticulously designed on a 24x24 grid for optimal simplicity, consistency, and readability. Currently at version 2.0.10, the library is actively maintained and provides a stable solution for integrating vectorized icons into React applications. It differentiates itself by providing each icon as an individual React component, allowing for easy customization through standard React props like `color`, `size`, and `strokeWidth`. This approach ensures that icons can be styled dynamically and rendered as inline SVGs, leveraging all the advantages of vector graphics without complex build steps. The package ships with TypeScript types, facilitating robust development, and supports modern ES modules for efficient bundling while also offering CommonJS compatibility for legacy setups.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import and use individual Feather icons as React components, customizing their appearance with props like `color`, `size`, and `strokeWidth`.

import React from 'react';
import { Camera, GitHub, Zap } from 'react-feather';

const App: React.FC = () => {
  return (
    <div>
      <h1>My React Icons</h1>
      <p>A simple camera icon:</p>
      <Camera color="blue" size={36} strokeWidth={2} />
      <p>A larger GitHub icon with custom styling:</p>
      <GitHub color="#333" size={64} style={{ border: '1px solid #eee', padding: '5px' }} />
      <p>Another icon, just for fun:</p>
      <Zap color="orange" size={24} />
    </div>
  );
};

export default App;

view raw JSON →