1.0.1 • Published 8 years ago

@epferrari/react-fa-icon v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

react-fa-icon

Font Awesome Icon component for React

install

npm install @epferrari/react-fa-icon --save

note Don't forget to install the font awesome package itself, and include its css or less in your app somewhere

npm install font-awesome --save

usage

ES6/ES2015

import FontIcon from "@epferrari/react-fa-icon";

<FontIcon icon="bluetooth"/> <FontIcon icon="spinner" spin/>

CommonJS

var FontIcon = require("@epferrari/react-fa-icon");

props

proptype
iconstringthe name of the icon to render. Same as the class name you would use with an <i> tag, but does not need to be prefaced by "fa-"
sizestring | intaccepts one of the following "lg", 2, 3, 4, 5
rightbooleanpull the icon to align right
leftbooleanpull the icon to align left
flipbooleaninvert the icon across the x-axis
mirrorbooleaninvert the icon across the y-axis
rotateintaccepts one of the following 90, 180, 270
fixedbooleancreates a fixed width icon
spinbooleananimate the icon spinning
borderbooleanrender a border around the icon