fastmcp/docs/snippets/youtube-embed.mdx
zzstoatzz 855ffb28b1 Replace YouTube cards with embedded video players
- Convert YouTube tutorial cards to embedded iframe players
- Create reusable YouTubeEmbed component in /snippets/
- Follow existing component pattern (like VersionBadge)
- Use Mintlify-compatible JSX syntax (camelCase attributes)
- Add responsive styling for better viewing experience

This improves maintainability and ensures consistent YouTube embed styling across the docs.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-12 12:23:10 -05:00

12 lines
No EOL
410 B
Text

export const YouTubeEmbed = ({ videoId, title }) => {
return (
<iframe
className="w-full aspect-video rounded-md"
src={`https://www.youtube.com/embed/${videoId}`}
title={title}
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
);
};