๐๏ธIntegration
Embed Technologies: Web Component & iFrame
Toucan offers two options for embedding our solutions:
Web Component: The latest embedding technology, designed for modern compatibility and seamless integration. Learn more about Web Components.
iFrame: The most widely used and established method, known for its broad compatibility.
Our Web Components include a built-in fallback mechanism: if a userโs environment does not support Web Components, it will automatically switch to an iFrame embed.
Comparing Web Components and iFrames
Here are some key points to help you choose between Web Components and iFrames for embedding Toucanโs solutions.
Pros and Cons of Web Components vs. iFrames
Compatibility
Modern browsers
Widely supported
Performance
Optimized loading
Generally stable
Integration
Simple SDK setup
Standard HTML
Fallback
Automatic to iFrame if unsupported
N/A

Easy Integration
Embedding with Web Component
Embedding with a Web Component is as simple as placing the following code within a container:
The embedLauncher.js script handles all logic, automatically appending the Web Component inside the div. You can also use our SDK for a programmatic integration.
Ensure the parent container has defined dimensions (width and height) to display the embedded content correctly.
Framework Compatibility
Our embed technology is compatible with all modern web frameworks. Hereโs an example for integrating with React:
React Integration Example You can explore our React integration example on GitHub: Toucan React Embed.
Embedding in Mobile Applications
Embedding Toucan is also possible within mobile native applications!
Android Integration Example
Make sure to enable DOM Storage and JavaScript for optimal functionality, as these settings are essential for loading embedded content in Android WebViews.
Last updated
Was this helpful?