Skip to content

zk-iframe ​

Renders an <iframe> element for embedded external content.

Props ​

PropTypeDefaultDescription
srcstring|nullnullEmbed URL
srcdocstring|nullnullInline HTML content
classstring|nullnullCSS class(es)
widthint|nullnullDisplay width
heightint|nullnullDisplay height
allowstring|nullnullPermissions policy
allowfullscreenboolfalseAllow fullscreen
allowpaymentrequestboolfalseAllow payment request API
loadingstring|nullnulllazy or eager
namestring|nullnullFrame name
referrerpolicystring|nullnullReferrer policy
sandboxstring|nullnullSandbox restrictions

Examples ​

YouTube embed ​

blade
<x-zk-iframe
    src="https://www.youtube.com/embed/dQw4w9WgXcQ"
    :width="560"
    :height="315"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
    allowfullscreen />

Sandboxed iframe ​

blade
<x-zk-iframe
    src="/preview"
    sandbox="allow-scripts allow-same-origin"
    loading="lazy" />

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.