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

# Head component

> Create Head wrapper component

## 1. Install dependencies

Install the EmailUX Email package locally and a few components.

<CodeGroup>
  ```bash theme={null}
  # pnpm
  pnpm add @emailux/components

  # npm
  npm install @emailux/components

  # yarn
  yarn add @emailux/components
  ```
</CodeGroup>

## 2. Usage

```tsx theme={null}
import { Head } from " @emailux/components";

export default function EmailTemplate() {
  return <Head>
    <title>Some title</title>
  </Head>;
}
```

## Props

| Name       | Type            | Required | Default                   | Description                            |
| ---------- | --------------- | -------- | ------------------------- | -------------------------------------- |
| children   | React.ReactNode | Yes      | —                         | Content of the email document          |
| title      | React.ReactNode | No       | —                         | Title                                  |
| defaultCss | string          | No       | Pre-written CSS for email | You can replace this with your own css |

All other standard Head attributes for the `<head>` element are supported.
