āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/magicuidesign/magicui/components/tweet-card ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @magicui/tweet-card
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Install the dependencies.</Step>
npm install react-tweet
Copy and paste the following code into your project.
<ComponentSource name="tweet-card" />Copy and paste the following code into your project.
<ComponentSource name="client-tweet-card" /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </Tabs>To render on server side using RSC (Next.js 13):
import { TweetCard } from "@/components/ui/tweet-card"
export default async function App() {
return <TweetCard id="1441032681968212480" />
}
To render on client side:
"use client"
import { ClientTweetCard } from "@/components/ui/client-tweet-card"
export default function App() {
return <ClientTweetCard id="1441032681968212480" />
}
| Prop | Type | Default | Description |
| ---- | -------- | ------- | ------------------------------- |
| id | string | - | The id of the tweet to display. |
| Prop | Type | Default | Description |
| ---- | -------- | ------- | ------------------------------- |
| id | string | - | The id of the tweet to display. |
This component is built on top of React Tweet.
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā