@logseq/react-tweet-embed
TypeScript icon, indicating that this package has built-in type declarations

1.3.1-1 • Public • Published

react-tweet-embed

Install

npm i react-tweet-embed

Quickstart Edit react-tweet-embed

import TweetEmbed from 'react-tweet-embed'
;<TweetEmbed id="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 id='783943172057694208' options={{cards: 'hidden' }}/>
<TweetEmbed id='771763270273294336' options={{theme: 'dark' }}/>

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

Readme

Keywords

none

Package Sidebar

Install

npm i @logseq/react-tweet-embed

Weekly Downloads

277

Version

1.3.1-1

License

MIT

Unpacked Size

319 kB

Total Files

12

Last publish

Collaborators

  • logseq-cldwalker
  • leizhe
  • logseq_junyi
  • fledna
  • xyhp915
  • logseq-team