/react-fontawesome

A React Font Awesome component.

Primary LanguageJavaScript

react-fontawesome

A React component for the font-awesome icon library.

Features

  • 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.

Usage

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

Contributing

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.

Credits

Created by Dana Woodman of BIG. Inspired by react-fa.

License

Licensed under the generous MIT license.