SDK


How to embed?
CDN use:
JavaScript framework:

Open a specific mockup in the Mockup Editor

Last updated




Last updated
<iframe
id="dm-iframe"
src="https://embed.dynamicmockups.com"
style="width: 100%; height: 90vh"
></iframe>// you must add this script before using initDynamicMockupsIframe function in next step
<script
src="https://cdn.jsdelivr.net/npm/@dynamic-mockups/mockup-editor-sdk@latest/dist/index.js"
></script><script>
document.addEventListener("DOMContentLoaded", function () {
DynamicMockups.initDynamicMockupsIframe({
iframeId: "dm-iframe",
data: { "x-website-key": "Generate for free via our APP" },
mode: "download",
});
});
</script><iframe
id="dm-iframe"
src="https://embed.dynamicmockups.com"
style="width: 100%; height: 90vh"
></iframe>npm install @dynamic-mockups/mockup-editor-sdk@latest
or
yarn add @dynamic-mockups/mockup-editor-sdk@latestimport { initDynamicMockupsIframe } from "@dynamic-mockups/mockup-editor-sdk";
initDynamicMockupsIframe({
iframeId: "dm-iframe",
data: { "x-website-key": "Generate for free via our APP" },
mode: "download",
});<iframe
id="dm-iframe"
src="https://embed.dynamicmockups.com/mockup/43981bf4-3f1a-46cd-985e-3d9bb40cef36/"
style="width: 100%; height: 90vh"
></iframe>