UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
✨ feat: add tweet card with meta image preview
Dillion Verma9a0c4676a729
diff --git a/content/components/tweet-card.mdx b/content/components/tweet-card.mdxindex 1d41e7dc..88dc95d5 100644--- a/content/components/tweet-card.mdx+++ b/content/components/tweet-card.mdx@@ -88,6 +88,10 @@ export default function App() {<ComponentPreview name="tweet-card-images" />+### Tweet Card With Meta URL Preview++<ComponentPreview name="tweet-card-meta-preview" />+## Props### ClientTweetCarddiff --git a/registry/components/example/tweet-card-images.tsx b/registry/components/example/tweet-card-images.tsxindex 6d370a7a..960c6e62 100644--- a/registry/components/example/tweet-card-images.tsx+++ b/registry/components/example/tweet-card-images.tsx@@ -2,10 +2,4 @@ import TweetCard from "@/registry/components/magicui/tweet-card";export default async function TweetImages() {return <TweetCard id="1678577280489234432" className="shadow-2xl" />;- // return <TweetCard id="1668408059125702661" className="shadow-2xl" />;- // return <TweetCard id="1675849118445436929" className="shadow-2xl" />;}-// https://twitter.com/dillionverma/status/-// https://x.com/ParkerRex/status/1694751634377568414?s=20-// https://twitter.com/dillionverma/status/1678577280489234432-// https://x.com/dillionverma/status/1675849118445436929?s=20diff --git a/registry/components/example/tweet-card-meta-preview.tsx b/registry/components/example/tweet-card-meta-preview.tsxnew file mode 100644index 00000000..a2629a94--- /dev/null+++ b/registry/components/example/tweet-card-meta-preview.tsx@@ -0,0 +1,5 @@+import TweetCard from "@/registry/components/magicui/tweet-card";++export default async function TweetImages() {+ return <TweetCard id="1675849118445436929" className="shadow-2xl" />;+}diff --git a/registry/index.tsx b/registry/index.tsxindex ffc8fd25..c4638488 100644--- a/registry/index.tsx+++ b/registry/index.tsx@@ -211,6 +211,14 @@ const example: Registry = {() => import("@/registry/components/example/tweet-card-images"),),},+ "tweet-card-meta-preview": {+ name: "tweet-card-meta-preview",+ type: "components:example",+ files: ["registry/components/example/tweet-card-meta-preview.tsx"],+ component: React.lazy(+ () => import("@/registry/components/example/tweet-card-meta-preview"),+ ),+ },"shimmer-button-demo": {name: "shimmer-button-demo",type: "components:example",