react-fontawesome
A React component for the font-awesome icon library.
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"
style={{ textShadow: '0 1px 0 rgba(0, 0, 0, 0.1)' }}
/>
);
}
});
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.