Back to React Email

Readme

packages/head/readme.md

0.0.152.7 KB
Original Source

<div align="center"><strong>@react-email/head</strong></div> <div align="center">Contains head components such as style and meta elements.</div> <div align="center"> <a href="https://react.email">Website</a> <span> · </span> <a href="https://github.com/resend/react-email">GitHub</a> </div>

Install

Install component from your command line.

With yarn

sh
yarn add @react-email/head -E

With npm

sh
npm install @react-email/head -E

Getting started

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

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

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

Support

This component was tested using the most popular email clients.

Gmail ✔Apple Mail ✔Outlook ✔Yahoo! Mail ✔HEY ✔Superhuman ✔

License

MIT License