1 | # react-fontawesome
|
2 |
|
3 | A React component for the font-awesome icon library.
|
4 |
|
5 |
|
6 | ## Usage
|
7 |
|
8 | ```
|
9 | var React = require('react');
|
10 | var FontAwesome = require('react-fontawesome');
|
11 |
|
12 | var 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 |
|
30 | Pull requests welcome!
|
31 |
|
32 | Please use the `.editorconfig`, `.jsfmtrc` and `.jshintrc` configurations in your editor to ensure proper formatting.
|
33 |
|
34 | Run the test suite with `npm test`, make sure tests are passing and that you write tests for new features.
|
35 |
|
36 |
|
37 | ## Credits
|
38 |
|
39 | Created 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 |
|
44 | Licensed under the generous MIT license.
|