Popup Builder
BuildersPopup Builder
Design signup / exit-intent popups, a centered modal with a dimming overlay.
<EmailEditor token="pk_live_…" options={{ displayMode: "popup" }} />displayMode: "popup" gives a narrower modal canvas. exportHtml wraps the design in a centered modal + overlay + close button, ready to drop into any page. Server-side, use renderPopupHtml from email-craft-sdk.
What renderPopupHtml returns
A fixed, full-screen overlay (black at 60% opacity) with a centered modal inside, marked role="dialog" and aria-modal="true". The modal is as wide as the design's content width, up to 560px, and scrolls when it is taller than 90% of the screen. You get a full HTML document by default; pass fullDocument: false to get only the overlay, ready to insert into your own page.
Showing and closing it
The output has no script. The overlay shows as soon as it is in the page, and the close button does nothing until your code handles it. Your page decides when to insert it (on load, on exit intent, after a delay):
const markup = renderPopupHtml(design, { fullDocument: false });
// in the browser
document.body.insertAdjacentHTML("beforeend", markup);
document.querySelector(".mailkaro-popup-close")?.addEventListener("click", () => {
document.querySelector(".mailkaro-popup-overlay")?.remove();
});In the editor
A blank popup design starts at a 520px content width. Inbox previews (Gmail, Apple Mail) are not offered in this builder, because they only make sense for an email.