resend/react-email
关于
💌 使用 React 构建并发送电子邮件
网站与应用实测星标增长
- 24小时
- +5
- 7天
- +27
- 15天
- +85
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
High-quality, unstyled components for creating emails.
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 2026 and beyond. Email development needs a revamp. A renovation. Modernized for the way we build web apps today.
Install
npm i react-email@latest
Getting started
Define your email template with React, include styles and our components where needed.
import { Button } from "react-email";
export default function Email() {
return (
<Button href="https://example.com" style={{ color: "#61dafb" }}>
Click me
</Button>
);
};
Using with AI
Install the React Email skill to teach your coding agent (Claude Code, Codex, Cursor, GitHub Copilot, and others) how to build emails with React Email:
npx skills add resend/react-email
The docs are also available for LLMs at react.email/docs/llms.txt.
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.
- Html
- Head
- Button
- Container
- CodeBlock
- CodeInline
- Column
- Row
- Font
- Heading
- Divider
- Image
- Link
- Markdown
- Preview
- Section
- Tailwind
- Paragraph
- Body
Editor
React Email also provides an Editor built on top of TipTap and ProseMirror, It serializes to React Email components, and exports email-ready HTML and plain text.
See the Editor documentation for more details.
Integrations
Emails built with React Email can be converted into HTML and sent using any email service provider. Here are some examples:
- Resend
- Nodemailer
- SendGrid
- MailerSend
- Mailgun
- Postmark
- AWS SES
- Azure Communication Email
- Plunk
- Scaleway
Support
All components were tested using the most popular email clients.
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
Development workflow
Contributing
Brought to you by Resend, MIT License.
探索相关项目
加载中…