A React component for the font-awesome icon library.
- No external dependencies on build tools.
- Not necessary to support ES6 in your application.
- Packaged for NPM as well as without.
- Remove the
fa-
prefix from all settings.
var React = require('react');
var FontAwesome = require('react-fontawesome');
var MyComponent = React.createClass({
render: function () {
return (
<FontAwesome
name="rocket"
spin
size="3x"
className="super-crazy-colors" />
);
}
});
- Valid sizes are: 1x, 2x, 3x, 4x & 5x
Pull requests welcome!
Please use the .editorconfig
, .jsfmtrc
and .jshintrc
configurations in your editor to ensure proper formatting.
Run the test suite with npm test
, make sure tests are passing and that you write tests for new features.
Created by Dana Woodman of BIG. Inspired by react-fa.
Licensed under the generous MIT license.