Interactive testing environment for react-shared components
Current: Default
Embed media content with iframe support and fallback placeholder
Enter a media URL to preview embedded content
Quick Select:
Different media sources and states
Your media content will be displayed here
embedUrlstring (optional) - The URL of the media to embed (YouTube, Vimeo, Loom, etc.)
urlErrorboolean (optional) - Whether to show error state with placeholder (default: false)
embedTypestring (optional) - CSS class name for iframe styling
embedStyleReact.CSSProperties (optional) - Inline styles for iframe
classNamestring (optional) - Additional CSS classes for the container
Supported Platforms: The component works with any iframe-embeddable media platform. Common platforms include YouTube, Vimeo, and Loom.
URL Format: Use the embed URL format provided by the platform (e.g., https://www.youtube.com/embed/VIDEO_ID for YouTube, https://www.loom.com/embed/VIDEO_ID for Loom).
Fallback Behavior: If urlError is true or embedUrl is empty, a placeholder with icon and message is displayed instead of the iframe.
Aspect Ratio: The component maintains a 16:9 aspect ratio using padding-bottom technique for responsive sizing.