Skip to content

Commit

Permalink
Merge pull request #9 from afzaalb/single-import
Browse files Browse the repository at this point in the history
Individual Icon import option
  • Loading branch information
Kilian authored Dec 18, 2018
2 parents 196ea2a + 31e00a7 commit 894c136
Show file tree
Hide file tree
Showing 98 changed files with 1,454 additions and 1,083 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Find the original [SVG icons here](https://github.com/danklammer/bytesize-icons)

### How to install?

`npm install --save react-bytesize-icons`
`npm install --save react-bytesize-icons`

### How to use?
Here's an example for using the `<Twitter/>` component.
Expand All @@ -16,13 +16,17 @@ import ReactDOM from 'react-dom';

import { Twitter } from 'react-bytesize-icons';


ReactDOM.render(
<Twitter width={50} height={50} color="#1da1f2" />,
document.getElementById('root')
);
```

You can also import this as following.
```
import Twitter from 'react-bytesize-icons/Twitter';
```
You should follow the import method which suits your needs. For details check [#9](https://github.com/abdelhai/react-bytesize-icons/pull/9).

### Components reference
Check out [this guide](https://github.com/danklammer/bytesize-icons#recommended-styles) on how to use the different styles/props listed in the table.
Expand Down
Loading

0 comments on commit 894c136

Please sign in to comment.