New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@epferrari/react-fa-icon

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epferrari/react-fa-icon

A simple fontawesome icon component

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

react

FAQs

Package last updated on 01 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts