1.0.3 • Published 9 years ago

sitb-react-icon v1.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

react-icon

React component for font awesome

Installation

sitb-react-icon

npm install sitb-react-icon

Usage

Dependencies

Depend on the style of the font-awesome library

import '../../node_modules/font-awesome/less/font-awesome.less';
import Icon from 'sitb-react-icon';
import { render } from 'react-dom';

let node = <Icon faStyle='gg' />;
render(<node, container);

Examples

The cloning project,install lib and start,

npm install
npm start 
http://localhost:9000

then open http://localhost:9000 in browser.

online example: http://sitb-software.github.io/react-icon/

Api

namedescriptiontypedefault
faStylethe icon style. more style http://fortawesome.github.io/Font-Awesome/icons/Stringundefined
classNameadditional css class of root dom nodeStringundefined
sizeTo increase icon sizes relative to their containerone of 1, 2, 3, 4, 5, '1', '2', '3', '4', '5'undefined
fixedfa-fw classBooleanfalse
listfa-li classBooleanfalse
borderfa-border classBooleanfalse
pullLeftfa-pull-left classBooleanfalse
pullRightfa-pull-right classBooleanfalse
animateAnimated Icons fa-spin or fa-pulseone of spin,pulseundefined
rotatefa-rotate-* 90 180 270Numberundefined
flipHorizontalfa-flip-horizontalBooleanfalse
flipVerticalfa-flip-verticalBooleanfalse
inversefa-inverseBooleanfalse
stackfa-stack-*one of 1, 2, '1', '2'false

License

License