UNPKG

930 BMarkdownView Raw
1# react-fontawesome
2
3A React component for the font-awesome icon library.
4
5
6## Usage
7
8```
9var React = require('react');
10var FontAwesome = require('react-fontawesome');
11
12var MyComponent = React.createClass({
13 render: function () {
14 return (
15 <FontAwesome
16 name="rocket"
17 spin
18 size="lg"
19 className="super-crazy-colors"
20 style={{ textShadow: '0 1px 0 rgba(0, 0, 0, 0.1)' }}
21 />
22 );
23 }
24});
25```
26
27
28## Contributing
29
30Pull requests welcome!
31
32Please use the `.editorconfig`, `.jsfmtrc` and `.jshintrc` configurations in your editor to ensure proper formatting.
33
34Run the test suite with `npm test`, make sure tests are passing and that you write tests for new features.
35
36
37## Credits
38
39Created by [Dana Woodman](http://danawoodman.com) of [BIG](http://builtbybig.com). Inspired by [react-fa](https://github.com/andreypopp/react-fa).
40
41
42## License
43
44Licensed under the generous MIT license.