mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
48 lines
725 B
Plaintext
48 lines
725 B
Plaintext
---
|
|
title: "Head"
|
|
sidebarTitle: "Head"
|
|
description: "Contains head components, related to the document such as style and meta elements."
|
|
"og:image": "https://react.email/static/covers/head.png"
|
|
icon: "head-side"
|
|
---
|
|
|
|
import Support from '/snippets/support.mdx'
|
|
|
|
## Install
|
|
|
|
Install component from your command line.
|
|
|
|
<CodeGroup>
|
|
|
|
```sh npm
|
|
npm install react-email -E
|
|
```
|
|
|
|
```sh yarn
|
|
yarn add react-email -E
|
|
```
|
|
|
|
```sh pnpm
|
|
pnpm add react-email -E
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
## Getting started
|
|
|
|
Add the component to your email template. Include children tags where needed.
|
|
|
|
```jsx
|
|
import { Head } from "react-email";
|
|
|
|
const Email = () => {
|
|
return (
|
|
<Head>
|
|
<title>My email title</title>
|
|
</Head>
|
|
);
|
|
};
|
|
```
|
|
|
|
<Support/>
|