A React html component to wrap emails
npm install @react-email/htmlInstall component from your command line.
#### With yarn
``sh`
yarn add @react-email/html -E
#### With npm
`sh`
npm install @react-email/html -E
Add the component to your email template. Include styles where needed.
`jsx
import { Button } from "@react-email/button";
import { Html } from "@react-email/html";
const Email = () => {
return (
);
};
``
This component was tested using the most popular email clients.
| |
|
|
|
|
|
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
MIT License