1 | # react-social-icons
|
2 |
|
3 | A set of beautiful svg social icons. Easily used in React. No images or external css dependencies. Svg paths provided by Squarespace.
|
4 |
|
5 | ![social network icons](http://i.imgur.com/RoIt9OD.png)
|
6 |
|
7 | ## Install
|
8 |
|
9 | ```
|
10 | npm install react-social-icons --save-dev
|
11 | ```
|
12 |
|
13 | ## Usage
|
14 |
|
15 | Pass in the `url` prop of your social network, and the icon will be rendered.
|
16 |
|
17 | ```js
|
18 | import React from 'react';
|
19 | import ReactDOM from 'react-dom';
|
20 | import { SocialIcon } from 'react-social-icons';
|
21 | ReactDOM.render(<SocialIcon url="http://twitter.com/jaketrent" />, document.body);
|
22 | ```
|
23 |
|
24 | See more [usage options on the example site](http://jaketrent.github.io/react-social-icons/).
|
25 |
|
26 | ## Rebuild Examples
|
27 |
|
28 | ```
|
29 | git checkout gh-pages
|
30 | git rebase master
|
31 | sh scripts/gen-gh-pages.sh
|
32 | ```
|