UNPKG

764 BMarkdownView Raw
1# react-social-icons
2
3A 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```
10npm install react-social-icons --save-dev
11```
12
13## Usage
14
15Pass in the `url` prop of your social network, and the icon will be rendered.
16
17```js
18import React from 'react';
19import ReactDOM from 'react-dom';
20import { SocialIcon } from 'react-social-icons';
21ReactDOM.render(<SocialIcon url="http://twitter.com/jaketrent" />, document.body);
22```
23
24See more [usage options on the example site](http://jaketrent.github.io/react-social-icons/).
25
26## Rebuild Examples
27
28```
29git checkout gh-pages
30git rebase master
31sh scripts/gen-gh-pages.sh
32```