back to home

resend / react-email

๐Ÿ’Œ Build and send emails using React

18,096 stars
919 forks
64 issues
TypeScriptMDXJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing resend/react-email in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/resend/react-email)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview

React email cover

<div align="center"><strong>React Email</strong></div> <div align="center">The next generation of writing emails.<br />High-quality, unstyled components for creating emails.</div> <br /> <div align="center"> <a href="https://react.email">Website</a> <span> ยท </span> <a href="https://github.com/resend/react-email">GitHub</a> </div>

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 2025 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

yarn add @react-email/components -E

With npm

npm install @react-email/components -E

With pnpm

pnpm install @react-email/components -E

Getting started

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

import { Button } from "@react-email/components";

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

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:

Support

All components were tested using the most popular email clients.

<img src="https://react.email/static/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"><img src="https://react.email/static/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"><img src="https://react.email/static/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"><img src="https://react.email/static/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"><img src="https://react.email/static/icons/hey.svg" width="48px" height="48px" alt="HEY logo"><img src="https://react.email/static/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo">
Gmail โœ”Apple Mail โœ”Outlook โœ”Yahoo! Mail โœ”HEY โœ”Superhuman โœ”

Development workflow

  1. Setting up your development environment
  2. Running tests
  3. Linting
  4. Building
  5. Writing documentation

Contributing

Authors

License

MIT License