---
title: "Vue, MailKaro Docs"
description: "Vue in MailKaro: a drop-in for vue-email-editor, the same <EmailEditor /> component for Vue 3."
---

# Vue

Frameworks

# Vue

A drop-in for `vue-email-editor`, the same `` component for Vue 3.

bash

```
npm install vue-email-craft
```

html App.vue

```
<template>
 <EmailEditor
 ref="editor"
 :options="options"
 token="pk_live_…"
 v-on:load="editorLoaded"
 />
</template>

<script setup>
 import { ref } from "vue";
 import { EmailEditor } from "vue-email-craft";

 const editor = ref();
 const options = { displayMode: "email" };

 const editorLoaded = (unlayer) => {
 unlayer.exportHtml((data) => console.log(data.html));
 };
</script>
```

ℹ Reach the editor imperatively via `editor.value.editor.exportHtml(...)`, or vue-email-editor's component methods `editor.value.loadDesign` / `saveDesign` / `exportHtml`. Events: `load` (alias `loaded`) when the editor is created, then `ready` when it has loaded (both with the editor handle; calls made from `load` are queued), and `updated` on every edit. Props match vue-email-editor (`editor-id`, `min-height` defaulting to 500px, `options`, `project-id`, `locale`, `tools`, `appearance`).

Next: [Events](https://docs.mailkaro.com/events).

Source: https://docs.mailkaro.com/vue
