Back to React Email

Head

apps/docs/components/head.mdx

0.0.15750 B
Original Source

import Support from '/snippets/support.mdx'

Install

Install component from your command line.

<CodeGroup>
sh
npm install @react-email/components -E

# or get the individual package

npm install @react-email/head -E
sh
yarn add @react-email/components -E

# or get the individual package

yarn add @react-email/head -E
sh
pnpm add @react-email/components -E

# or get the individual package

pnpm add @react-email/head -E
</CodeGroup>

Getting started

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

jsx
import { Head } from "@react-email/components";

const Email = () => {
  return (
    <Head>
      <title>My email title</title>
    </Head>
  );
};
<Support/>