> ## Documentation Index
> Fetch the complete documentation index at: https://vuemail.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Head

> Contains head components, related to the document such as style and meta elements.

## Install

Install component from your command line.

```sh npm theme={null}
npm install @vuemaildev/vuemail -E
```

```sh yarn theme={null}
yarn add @vuemaildev/vuemail -E
```

```sh pnpm theme={null}
pnpm add @vuemaildev/vuemail -E
```

## Getting started

Add the component to your email template. Include children tags where needed.

```vue theme={null}
<script setup lang="ts">
import { Head } from '@vuemaildev/vuemail';
</script>

<template>
  <Head>
    <title>My email title</title>
  </Head>
</template>
```

> [!NOTE]
>
> `<style>` tags can't be written in Vue templates, so to add one to the head, render it from
> `<script setup>` with a small functional component:
>
> ```vue theme={null}
> <script setup lang="ts">
> import { h } from 'vue';
> import { Head } from '@vuemaildev/vuemail';
>
> const Styles = () => h('style', { innerHTML: 'a { color: #42b883; }' });
> </script>
>
> <template>
>   <Head>
>     <Styles />
>   </Head>
> </template>
> ```

## Support

All components were tested using the most popular email clients.

![Gmail](https://vuemail.dev/static/icons/gmail.svg)

Gmail

![Apple Mail](https://vuemail.dev/static/icons/apple-mail.svg)

Apple Mail

![Outlook](https://vuemail.dev/static/icons/outlook.svg)

Outlook

![Yahoo! Mail](https://vuemail.dev/static/icons/yahoo-mail.svg)

Yahoo! Mail

![HEY](https://vuemail.dev/static/icons/hey.svg)

HEY

![Superhuman](https://vuemail.dev/static/icons/superhuman.svg)

Superhuman


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.