React Email

Build and send emails using React

README

React email cover

react-email


Introduction


A collection of high-quality, unstyled components for creating beautiful emails using React and TypeScript.
It reduces the pain of coding responsive emails with dark mode support. It also takes care of inconsistencies between Gmail, Outlook, and other email clients for you.

Why


We believe that email is an extremely important medium for people to communicate. However, we need to stop developing emails like 2010, and rethink how email can be done in 2022 and beyond. Email development needs a revamp. A renovation. Modernized for the way we build web apps today.

Install


Install one of the components from your command line.

With yarn


  1. ```sh
  2. yarn add @react-email/components -E
  3. ```

With npm


  1. ```sh
  2. npm install @react-email/components -E
  3. ```

With pnpm


  1. ```sh
  2. pnpm install @react-email/components -E
  3. ```

Getting started


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

  1. ```jsx
  2. import { Button } from "@react-email/components";

  3. const Email = () => {
  4.   return (
  5.     <Button href="https://example.com" style={{ color: "#61dafb" }}>
  6.       Click me
  7.     </Button>
  8.   );
  9. };
  10. ```

Components


A set of standard components to help you build amazing emails without having to deal with the mess of creating table-based layouts and maintaining archaic markup.


Integrations


Emails built with React Email can be converted into HTML and sent using any email service provider. Here are some examples:


Development


Install dependencies


  1. ```sh
  2. pnpm install
  3. ```

Build and run packages


  1. ```sh
  2. pnpm dev
  3. ```

This will initialize all packages in parallel and watch for changes, including the website which will be available at localhost:3000.

Contributing



Authors


- Bu Kinoshita (@bukinoshita)
- Zeno Rocha (@zenorocha)

License


MIT License