Skip to content

zk-object ​

Renders an <object> element for embedded external resources (PDF, SVG, Flash legacy).

Props ​

PropTypeDefaultDescription
datastring|nullnullResource URL
typestring|nullnullMIME type of the resource
widthint|nullnullDisplay width
heightint|nullnullDisplay height
namestring|nullnullname attribute
formstring|nullnullAssociated form id
classstring|nullnullCSS class(es)

Example ​

blade
<x-zk-object data="/documents/report.pdf" type="application/pdf" :width="800" :height="600">
    <p>Your browser does not support PDF embedding. <a href="/documents/report.pdf">Download</a></p>
</x-zk-object>

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