# react-icon

> Icon component for React

Latest version **1.0.0** (published 2015-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-icon
pnpm add react-icon
yarn add react-icon
bun add react-icon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-10-07 |
| First published | 2015-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Nikita Gusakov |
| Maintainers | nkt |
| Keywords | react, react-component, icon, glyph |

## Links

- npm: https://www.npmjs.com/package/react-icon
- Repository: https://github.com/nkt/react-icon
- Issues: https://github.com/nkt/react-icon/issues
- npm.io page: https://npm.io/package/react-icon

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-10-07
- 0.2.4 — 2015-05-14
- 0.2.3 — 2015-05-14
- 0.2.2 — 2015-05-14
- 0.2.1 — 2015-05-14
- 0.2.0 — 2015-05-14
- 0.1.0 — 2015-02-22

## README

# React Icon
[![Build Status](https://circleci.com/gh/nkt/react-icon.svg?style=svg)](https://circleci.com/gh/nkt/react-icon)

Simple component for icons in your React app.

Installation
------------

```
npm install --save react-icon
```

Usage
-----

```js
const React = require('react');
const Icon = require('react-icon');

const StarCounter = React.createClass({
  render() {
    return (
      <div>
        <span>This user have {this.props.count}</span>
        <Icon glyph="star" />
      </div>
    );
  }
});

module.exports = StarCounter;
```

By default component uses `fa` as class prefix (`fa fa-star`).
This behavior customizable:

```js
const Icon = require('react-icon');

Icon.setDefaultFontPrefix('glyphicon') // glyphicon glyphicon-star
```

License
-------
[![License](https://img.shields.io/npm/l/react-icon.svg)](LICENSE)

---
_Source: https://npm.io/package/react-icon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
