Easy Tweet Embedding in Mastra Blog Posts

Introducing seamless tweet embedding in MDX blog posts with our new Tweet component. Share insights, conversations, and community moments directly in your content.

Jan 25, 2025

·

1 min read

Basic Usage

Simply use the TweetEmbed component with any tweet URL:

 1<TweetEmbed url="https://x.com/mattppal/status/1970488331046920629" />

And here's what that looks like:

Multiple Ways to Embed

The easiest way is to just paste the tweet URL:

 1<TweetEmbed url="https://x.com/username/status/1234567890" />

Using Tweet IDs

If you prefer working with just the ID:

 1<Tweet id="1970488331046920629" />
Share: