Skip to content

Commit

Permalink
Merge pull request #6 from Maxhodges/patch-2
Browse files Browse the repository at this point in the history
add options example
  • Loading branch information
capaj authored Nov 14, 2016
2 parents a9710e0 + 12a5604 commit fed4e38
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ npm i react-tweet-embed
jspm i npm:react-tweet-embed
```

## Usage
## Quickstart

```javascript
import TweetEmbed from 'react-tweet-embed'
Expand All @@ -16,3 +16,14 @@ import TweetEmbed from 'react-tweet-embed'
```

You don't have to put `//platform.twitter.com/widgets.js` script in your index.html as this lib will put it there if `twttr` is not found on window.


## Using Options

```
<TweetEmbed id='783943172057694208' options={{cards: 'hidden' }}/>
<TweetEmbed id='771763270273294336' options={{theme: 'dark' }}/>
```

Embedded-Tweet Options Reference:
https://dev.twitter.com/web/embedded-tweets/parameters

0 comments on commit fed4e38

Please sign in to comment.