Font awesome icon is react component.
yarn add faicon font-awesome
npm i --save faicon font-awesome
After installing faicon, react, and webpack (or gulp):
import React from 'react';
import { Faicon } from 'faicon';
import 'font-awesome/css/font-awesome.css';
class App extends React.Component {
render() {
return (
<Faicon name="user"/>
);
};
}
name="user"
- name of icon without "fa-" (required)size="2"
- size of icon without "fa-" & "x", default "lg"spin
orpulse
- Set animate for iconborder
fixed
- Set fixed size for iconfh
orfv
- Set flip for iconrotate="90"
inverse
addClass="my-cool-class"
Inversing user in square:
import React from 'react';
import { Stack } from 'faicon';
import 'font-awesome/css/font-awesome.css';
class App extends React.Component {
render() {
return (
<Stack name1="user" name2="square-o" inverse1/>
);
};
}
Please see CHANGELOG for more information what has changed recently.
The Apache License Version 2.0. Please see License File for more information.