Find Similar Packages for react-tweet-embed
react-tweet-embedSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on react-tweet-embed's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of react-tweet-embed](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-tweet-embed.png)](https://npm-compare.com/react-tweet-embed#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
react-tweet-embed5,065
166328 kB9-MIT
README for react-tweet-embed

react-tweet-embed

Install

npm i react-tweet-embed

Quickstart Edit react-tweet-embed

import React from 'react'
import TweetEmbed from 'react-tweet-embed'

export const App = () => {
  return <TweetEmbed tweetId="692527862369357824" />
}

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 tweetId='783943172057694208' options={{cards: 'hidden' }}/>
<TweetEmbed tweetId='771763270273294336' options={{theme: 'dark' }}/>

Embedded-Tweet Options Reference:
https://developer.twitter.com/en/docs/twitter-for-websites/embedded-tweets/guides/embedded-tweet-parameter-reference