This guide shows you how to embed external content like Figma designs and Wonderful boards directly into your documentation pages.
You can embed Figma boards, design files, and prototypes using the FigmaEmbed component:
- url (required): The Figma file URL or embed URL
- title (optional): Descriptive title for the embed
- height (optional): Height in pixels (default: 450)
- allowFullscreen (optional): Enable fullscreen mode (default: true)
- Open your Figma file
- Click the "Share" button
- Select "Get embed code"
- Copy the URL from the embed code
Embed Wonderful documents, boards, and pages using the WonderfulEmbed component:
📋
Marketing Campaign Board
- url (required): The Wonderful page/board/document URL
- type (optional): Content type - 'document', 'board', or 'page' (default: 'page')
- title (optional): Descriptive title for the embed
- height (optional): Height in pixels (default: 500)
- allowFullscreen (optional): Enable fullscreen mode (default: true)
Both embed components are fully responsive and work on all screen sizes:
- Mobile devices: Embeds scale to fit screen width
- Tablets: Embeds maintain aspect ratio
- Desktop: Embeds display at specified height
Always provide descriptive titles for your embeds:
<FigmaEmbed
url="..."
title="User Onboarding Flow Wireframes"
/>
Use lazy loading for embeds below the fold (enabled by default):
- Embeds only load when scrolled into view
- Reduces initial page load time
- Improves overall performance
Choose appropriate heights based on content:
- Figma designs: 450-800px depending on complexity
- Wonderful boards: 500-700px for standard boards
- Wonderful documents: 400-600px for text-heavy content
For quick previews or thumbnails:
For detailed project boards:
For embedded documentation:
If your embed doesn't load:
- Check that the URL is correct and accessible
- Verify the content is set to "public" or has proper sharing permissions
- Ensure embed links are enabled in the source platform
- Check browser console for any error messages
If embeds are slow to load:
- Reduce the number of embeds per page (3-5 maximum recommended)
- Use smaller height values when possible
- Consider linking to content instead of embedding for heavy files
- Ensure source content is optimized