# react-svg-font-icons

> ![NPM Version](https://img.shields.io/npm/v/react-final-form.svg?style=flat) ![NPM Downloads](https://img.shields.io/npm/dm/react-final-form.svg?style=flat)

Latest version **0.2.0** (published 2018-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-svg-font-icons
pnpm add react-svg-font-icons
yarn add react-svg-font-icons
bun add react-svg-font-icons
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2018-11-12 |
| First published | 2018-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 76.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Reza Khosroshahi |
| Maintainers | rzkhosroshahi |

## Links

- npm: https://www.npmjs.com/package/react-svg-font-icons
- Repository: https://github.com/rzkhosroshahi/react-svg-font-icons
- Issues: https://github.com/rzkhosroshahi/react-svg-font-icons/issues
- npm.io page: https://npm.io/package/react-svg-font-icons

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2

## Recent versions

- 0.2.0 (latest) — 2018-11-12
- 0.1.9 — 2018-07-11
- 0.1.8 — 2018-07-10
- 0.1.5 — 2018-07-09
- 0.1.1 — 2018-07-07
- 0.1.0 — 2018-07-06

## README

## React Svg Font Icons

![NPM Version](https://img.shields.io/npm/v/react-final-form.svg?style=flat)
![NPM Downloads](https://img.shields.io/npm/dm/react-final-form.svg?style=flat)

A React component that makes easy to use popular font icon sets as an SVG element.

Icon sets that supported:
- font awesome v4
- simple line icons

## Installation
```
$ npm install --save-dev react-svg-font-icons
```

## Getting Started
React-svg-font-icons use same icon names in different icon sets. You can see and copy these in [here](https://rzkhosroshahi.github.io/react-svg-font-icons/)

example:
```jsx
import React from 'react';
import SvgFontIcons from 'react-svg-font-icons';

  const FontAwesomeIcon = () => (
    <SvgFontIcons sets="fontAwesome" name="trash" fill="#333" />
  );

  const SimpleLineIcons = () => (
    <SvgFontIcons sets="simpleLineIcon" name="trash" fill="#333" /> 
  );
```
If you want use default sets in entire project:

```jsx
import React from 'react';
import { AwesomeSvg, SimpleLineSvg } from 'react-svg-font-icons';
const IconA () => (
  <AwesomeSvg name="trash" />
);

const IconB = () => (
  <SimpleLineSvg name="trash" />
);
```


## Props
| prop key        | default props  |   describe  |
| ------------- |:-------------:|-------------|
| sets     | fontAwesome |  icons set |
| name     | *none* | icon name |
| size      | 1rem   | size set svg width and height value|
| fill |  none  | icon color if you want change svg color with css, prevent to change this prop |
| className |  *none*  | custom class name |

## License
MIT © [RE7A](https://reza.blue)

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