components

HTML

A Vue html component to wrap emails.

Usage

Add the component to your email template. Include styles where needed.

<script setup>
import { EHtml, EButton } from 'vue-email';
</script>

<template>
  <e-html lang="en">
    <e-button href="https://example.com" style="color: #61dafb">
      Click me
    </e-button>
  </e-html>
</template>

Props

lang
string

Identify the language of text content on the email

dir
string

Identify the direction of text content on the email