@react-email/html
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

React Email HTML cover

@react-email/html
A React html component to wrap emails.

Install

Install component from your command line.

With yarn

yarn add @react-email/html -E

With npm

npm install @react-email/html -E

Getting started

Add the component to your email template. Include styles where needed.

import { Button } from "@react-email/button";
import { Html } from "@react-email/html";

const Email = () => {
  return (
    <Html lang="en">
      <Button href="https://example.com" style={{ color: "#61dafb" }}>
        Click me
      </Button>
    </Html>
  );
};

Support

This component was tested using the most popular email clients.

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

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @react-email/html

Weekly Downloads

282,976

Version

0.0.7

License

MIT

Unpacked Size

9.94 kB

Total Files

7

Last publish

Collaborators

  • gabrielmfern
  • bukinoshita
  • zenorocha