2022-12-21 13:17:16 -03:00

2022-11-22 01:08:19 -03:00
2022-09-20 18:08:36 -03:00
<div align="center"><strong>React Email</strong></div>
2022-11-22 01:04:49 -03:00
<div align="center">The next generation of writing emails.<br />High-quality, unstyled components for creating emails.</div>
2022-09-20 18:08:36 -03:00
<br />
<div align="center">
<a href="https://react.email">Website</a>
<span> · </span>
2023-12-19 15:37:06 -03:00
<a href="https://github.com/resend/react-email">GitHub</a>
2022-09-20 18:08:36 -03:00
<span> · </span>
2022-09-21 13:55:56 -07:00
<a href="https://react.email/discord">Discord</a>
2022-09-20 18:08:36 -03:00
</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
2025-07-29 21:57:19 +02:00
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.
2022-09-20 18:13:52 -03:00
2022-09-20 16:24:12 -07:00
## Install
Install one of the components from your command line.
#### With yarn
``` sh
2023-12-01 11:30:32 -03:00
yarn add @react-email/components -E
2022-09-20 16:24:12 -07:00
```
#### With npm
``` sh
2023-12-01 11:30:32 -03:00
npm install @react-email/components -E
2022-09-20 16:24:12 -07:00
```
2023-10-02 14:04:07 -03:00
#### With pnpm
``` sh
2023-12-01 11:30:32 -03:00
pnpm install @react-email/components -E
2023-10-02 14:04:07 -03:00
```
2022-09-20 16:24:12 -07:00
## Getting started
Add the component to your email template. Include styles where needed.
``` jsx
2023-12-01 11:30:32 -03:00
import { Button } from "@react-email/components" ;
2022-09-20 16:24:12 -07:00
const Email = ( ) => {
return (
2023-10-01 22:13:36 -03:00
< Button href = "https://example.com" style = { { color : "#61dafb" } } >
2022-09-20 16:24:12 -07:00
Click me
< / Button >
) ;
} ;
```
2022-09-22 18:15:13 -07:00
## 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.
2024-02-11 17:41:46 +05:30
- [Body ](https://github.com/resend/react-email/tree/main/packages/body )
- [Button ](https://github.com/resend/react-email/tree/main/packages/button )
- [CodeBlock ](https://github.com/resend/react-email/tree/main/packages/code-block )
- [CodeInline ](https://github.com/resend/react-email/tree/main/packages/code-inline )
- [Column ](https://github.com/resend/react-email/tree/main/packages/column )
- [Container ](https://github.com/resend/react-email/tree/main/packages/container )
- [Divider ](https://github.com/resend/react-email/tree/main/packages/hr )
- [Font ](https://github.com/resend/react-email/tree/main/packages/font )
2023-12-19 15:37:06 -03:00
- [Head ](https://github.com/resend/react-email/tree/main/packages/head )
- [Heading ](https://github.com/resend/react-email/tree/main/packages/heading )
2024-02-11 17:41:46 +05:30
- [Html ](https://github.com/resend/react-email/tree/main/packages/html )
2023-12-19 15:37:06 -03:00
- [Image ](https://github.com/resend/react-email/tree/main/packages/img )
2024-02-11 17:41:46 +05:30
- [Link ](https://github.com/resend/react-email/tree/main/packages/link )
- [Markdown ](https://github.com/resend/react-email/tree/main/packages/markdown )
2023-12-19 15:37:06 -03:00
- [Paragraph ](https://github.com/resend/react-email/tree/main/packages/text )
- [Preview ](https://github.com/resend/react-email/tree/main/packages/preview )
- [Section ](https://github.com/resend/react-email/tree/main/packages/section )
2022-09-22 18:15:13 -07:00
2022-10-20 10:20:25 -07:00
## Integrations
Emails built with React Email can be converted into HTML and sent using any email service provider. Here are some examples:
2023-12-19 15:37:06 -03:00
- [Resend ](https://github.com/resend/react-email/tree/main/examples/resend )
- [Nodemailer ](https://github.com/resend/react-email/tree/main/examples/nodemailer )
- [SendGrid ](https://github.com/resend/react-email/tree/main/examples/sendgrid )
- [Postmark ](https://github.com/resend/react-email/tree/main/examples/postmark )
- [AWS SES ](https://github.com/resend/react-email/tree/main/examples/aws-ses )
2024-12-26 18:31:36 +05:30
- [Plunk ](https://github.com/resend/react-email/tree/main/examples/plunk )
- [Scaleway ](https://github.com/resend/react-email/tree/main/examples/scaleway )
2022-10-20 10:20:25 -07:00
2022-09-22 18:27:35 -07:00
## Support
All components were tested using the most popular email clients.
2022-12-21 13:17:16 -03:00
| <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"> |
2022-12-03 16:18:11 -03:00
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
2023-10-01 22:13:36 -03:00
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
2022-09-22 18:27:35 -07:00
2022-09-20 16:27:45 -07:00
## Development
#### Install dependencies
2022-09-24 13:29:13 -03:00
``` sh
2023-10-01 22:13:36 -03:00
pnpm install
2022-09-24 13:29:13 -03:00
```
2022-09-20 16:27:45 -07:00
2025-05-26 10:13:28 -03:00
#### Build
``` sh
pnpm build
```
#### Run packages
2022-09-20 16:27:45 -07:00
2022-09-24 13:29:13 -03:00
``` sh
2023-10-01 22:13:36 -03:00
pnpm dev
2022-09-24 13:29:13 -03:00
```
2022-09-20 16:27:45 -07:00
2023-10-05 01:53:09 +08:00
This will initialize all packages in parallel and watch for changes, including the website which will be available at [localhost:3000 ](http://localhost:3000 ).
2022-09-20 16:27:45 -07:00
2023-01-31 22:32:37 -05:00
## Contributing
- [Contribution Guide ](https://react.email/docs/contributing )
2022-09-20 18:27:33 -03:00
## Authors
2022-09-20 18:13:52 -03:00
2022-09-20 18:14:39 -03:00
- Bu Kinoshita ([@bukinoshita ](https://twitter.com/bukinoshita ))
- Zeno Rocha ([@zenorocha ](https://twitter.com/zenorocha ))
2022-09-20 16:21:36 -07:00
## License
2022-09-24 13:29:13 -03:00
MIT License