Skip to content

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

feat: change the demo component in the TweeCard document (#113)

Jimin (Aaron) Sonbc3c4aa51971
diff --git a/registry/components/example/tweet-card-demo.tsx b/registry/components/example/tweet-card-demo.tsx
index 121f681f..225e3901 100644
--- a/registry/components/example/tweet-card-demo.tsx
+++ b/registry/components/example/tweet-card-demo.tsx
@@ -1,5 +1,9 @@
-import TweetCard from "@/registry/components/magicui/tweet-card";
+import ClientTweetCard from "@/registry/components/magicui/client-tweet-card";
+/**
+ * <TweetCard /> (Server Side Only)
+ * <ClientTweetCard /> (Client Side Only)
+ */
export default async function TweetDemo() {
- return <TweetCard id="1668408059125702661" className="shadow-2xl" />;
+ return <ClientTweetCard id="1668408059125702661" className="shadow-2xl" />;
}
diff --git a/registry/components/example/tweet-card-images.tsx b/registry/components/example/tweet-card-images.tsx
index 960c6e62..dcfce88f 100644
--- a/registry/components/example/tweet-card-images.tsx
+++ b/registry/components/example/tweet-card-images.tsx
@@ -1,5 +1,5 @@
-import TweetCard from "@/registry/components/magicui/tweet-card";
+import ClientTweetCard from "@/registry/components/magicui/client-tweet-card";
export default async function TweetImages() {
- return <TweetCard id="1678577280489234432" className="shadow-2xl" />;
+ return <ClientTweetCard id="1678577280489234432" className="shadow-2xl" />;
}
diff --git a/registry/components/example/tweet-card-meta-preview.tsx b/registry/components/example/tweet-card-meta-preview.tsx
index 5255f25b..d24de0f2 100644
--- a/registry/components/example/tweet-card-meta-preview.tsx
+++ b/registry/components/example/tweet-card-meta-preview.tsx
@@ -1,5 +1,5 @@
-import TweetCard from "@/registry/components/magicui/tweet-card";
+import ClientTweetCard from "@/registry/components/magicui/client-tweet-card";
export default async function TweetMetaPreview() {
- return <TweetCard id="1675849118445436929" className="shadow-2xl" />;
+ return <ClientTweetCard id="1675849118445436929" className="shadow-2xl" />;
}