@react-email/head
Contains head components such as style and meta elements.
Install component from your command line.
yarn add @react-email/head -E
npm install @react-email/head -E
Add the component to your email template. Include children tags where needed.
import { Head } from "@react-email/head";
const Email = () => {
return (
<Head>
<title>My email title</title>
</Head>
);
};
This component was tested using the most popular email clients.
Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
MIT License