Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Aug 19, 2017
1 parent 9a9e60f commit b87963e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 1.0.1 - 2017-08-19
* Fix sibling re-ordering
* Add option to disable placeholder text

## 1.0.0 - 2017-08-17
* Engadge 🚀
* Engage 🚀
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ $ npm install twitter-component
### `TwitterComponent = require('twitter-component`)
Import `TwitterComponent` component class.

### `tweet = new TwitterComponent()`
Create a new instance of the twitter component. There are no options or arguments.
### `tweet = new TwitterComponent([opts])`
Create a new instance of the twitter component. `opts` is an options objec that can have the following options:

```js
{
placeholder: true // Enables placeholder text while loading tweet cards
}
```

### `tweet.render(tweetURL)`
Returns a div that, when mounted into the page, will be the target of `twttr.widgets.createTweet`.
Expand Down

0 comments on commit b87963e

Please sign in to comment.