Tako Knowledge Cards vary in size. Some interactive elements will change the card’s dimensions. The iframe emits a resize event when the card is resized, allowing you to adjust the size in your application.
Example Dynamic Resizing Script
Copy
Ask AI
<iframe width="100%" src="https://trytako.com/embed/mA-C6b48zxyU3G33JJdO/" scrolling="no" frameborder="0"></iframe><script type="text/javascript">!function() { "use strict"; window.addEventListener("message", function(e) { const d = e.data; if (d.type !== "tako::resize") return; for (let iframe of document.querySelectorAll("iframe")) { if (iframe.contentWindow !== e.source) continue; iframe.style.height = d.height + "px"; } });}();</script>
Static Images
For cases where you need a static representation, you can use the image_url to download and embed a static image of the card in your application.
Tako Enterprise users can use our theme builder to customize the fonts, spacing and colors of Tako visualizations. This allows you to achieve a look consistent with your brand identity.
Tako Card With Custom Fonts
Enterprise users can also add their logo and shrink the Tako logo: