Package Exports
- react-fontawesome
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-fontawesome) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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="lg"
className="super-crazy-colors" />
);
}
});
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.