25 lines
652 B
Markdown
25 lines
652 B
Markdown
# Feather Icons React
|
|
|
|
[](https://www.npmjs.com/package/feather-icons-react)
|
|
|
|
`npm install --save feather-icons-react`
|
|
|
|
This package lets you use Feather Icons as a React Component.
|
|
[Feather Icons](https://feathericons.com/) is an svg font library by Cole Bemis.
|
|
|
|
### Example usage:
|
|
```
|
|
import FeatherIcon from 'feather-icons-react';
|
|
<FeatherIcon icon="close" />
|
|
```
|
|
|
|
|
|
Setting a size:
|
|
|
|
Size can be passed as either string or number.
|
|
|
|
e.g.: `<FeatherIcon icon="copy" size="24" />` or `<... size={24} />`
|
|
|
|
|
|
The icon names can all be referenced at: [feathericons.com](https://feathericons.com/)
|