Minimal Tweet Layout powered by Emplode.
Tweet card component accepts the following props:
tweetId
of the tweet, which can be obtained from the tweet url.metrics
boolean to show tweet metrics. (Default is true).media
boolean to show tweet media. (Default is true).timestamp
boolean to show tweet timestamp. (Default is true).scale
controls the scale of the tweet content within the card. (Default is 0.7).
-
Install the
react-tweet
npm package. -
Visit this URL and copy the code.
- If you are using
shadcn
, you are good to go. Otherwise, you need to addtailwind-merge
. Check the code here.
- If you are using
-
Paste the
<TweetCard>
component into your project:import React from "react" import { TweetCard } from "./path-to-your-tweet-card-component" export const App = () => { const tweetId = "1234567890" return <TweetCard tweetId={tweetId} /> }