Media Embed Example
· 3 min read
The MediaEmbed component embeds videos and posts from YouTube, Instagram, Facebook, TikTok, and Dailymotion directly inside your MDX articles. Each embed comes with a "View on …" link and a Picture-in-Picture (PiP) button so readers can keep watching while they scroll.
For each platform you pass a type and an id — the short platform id, not the full URL. See the reference at documentation/MEDIA_EMBEDS.md for how to extract each id.
