@email-builder/vue
| Install | |
|---|---|
npm install @email-builder/vue |
|
| Latest Version: | 0.3.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Sep 13, 2026 |
| Links: | GitHub · npm |
@email-builder/vue
A drag-and-drop email editor for Vue 3. Authors build emails from rows and blocks; you get a JSON design to store and email-safe HTML to send.
Part of Email Builder. A React version with the same
props is @email-builder/react.
Install
npm i @email-builder/vue @email-builder/styles
Requires Vue 3.4 or later.
Use
<script setup>
import { EmailBuilder } from "@email-builder/vue";
import "@email-builder/styles";
const props = defineProps({ design: Object });
async function saveDesign(doc) {
await fetch("/api/designs", { method: "POST", body: JSON.stringify(doc) });
}
</script>
<template>
<div style="height: 100vh">
<EmailBuilder :document="design" :on-save="saveDesign" @ready="(editor) => console.log(editor.compile().html)" />
</div>
</template>
The editor fills its container, so give the container a height.
Props and events
Props match @email-builder/react: document,
blocks, exclude-blocks, fonts, merge-fields, merge-syntax, adapter, autosave, theme,
show-palette, show-inspector, show-toolbar, toolbar-actions, on-save, on-change, on-ready.
Events: save, change, ready, select.
To match your app's colours, see the theming guide.
License
MIT
Related Packages
A visual drag & drop email builder for Vue 3. Exports email-client-compatible HT...
Vue 3 drag-and-drop email editor with AI-assisted editing, built on MJML
: the embeddable drag-and-drop email editor and page builder as a Vue 3 componen...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.3.0 | >=3.4 | MIT | |
| 0.2.1 | >=3.4 | MIT | |
| 0.2.0 | >=3.4 | MIT | |
| 0.1.0 | >=3.4 | MIT |