Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: added cli for tweet-card component (#632)

Arghya Dasa96620bf7bd4
diff --git a/content/docs/components/tweet-card.mdx b/content/docs/components/tweet-card.mdx
index 8f8a0d27..03b9e99d 100644
--- a/content/docs/components/tweet-card.mdx
+++ b/content/docs/components/tweet-card.mdx
@@ -9,9 +9,27 @@ video: https://cdn.magicui.design/tweet-card.mp4
<ComponentPreview name="tweet-card-demo" />
+## Installation
+
+<Tabs defaultValue="cli">
+
+<TabsList>
+ <TabsTrigger value="cli">CLI</TabsTrigger>
+ <TabsTrigger value="manual">Manual</TabsTrigger>
+</TabsList>
+<TabsContent value="cli">
+
+```bash
+npx shadcn@latest add "https://magicui.design/r/tweet-card"
+```
+
+</TabsContent>
+
+<TabsContent value="manual">
+
<Steps>
-### Installation
+<Step>Install the dependencies.</Step>
```bash
npm install react-tweet
@@ -29,6 +47,16 @@ 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>
+
+<Steps>
+
</Steps>
## Usage