Head
Renders the <head> element with essential meta tags for email.
Usage
<template>
<Html>
<Head /> <Body>
<!-- your email content -->
</Body>
</Html>
</template>
Anything you pass inside the <Head> tag is rendered after the default meta tags. This is where you add your <style> tags with Tailwind CSS imports, for example:
emails/example.vue
<template>
<Html>
<Head>
<style> @import "@maizzle/tailwindcss"; </style> </Head>
<Body>
<!-- your email content -->
</Body>
</Html>
</template>
Props
double
Type: boolean | string
Default: false
Renders an empty <head> element before the real one.
emails/example.vue
<template>
<Html>
<Head :double="true">
<style>
@import "@maizzle/tailwindcss";
</style>
</Head>
<Body>
<!-- your email content -->
</Body>
</Html>
</template>
This is a workaround for Yahoo! Mail on Android, which strips styles from the first <head> element it finds. By rendering an empty <head> first, your actual styles in the second <head> are preserved and used by the client. Can break in some email service providers.