🖇️Integration
Last updated
Last updated
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.
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
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.
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 Toucan is also possible within mobile native applications!
Make sure to enable DOM Storage
and JavaScript
for optimal functionality, as these settings are essential for loading embedded content in Android WebViews.