react-email

Build responsive HTML emails with React Email components. Covers email structure (Html, Head, Body, Container), content components (Text, Heading, Button, Link, Img), layout (Section, Row, Column), styling with inline CSS and Tailwind, custom fonts, preview text, and rendering to HTML. Use when creating transactional emails, marketing templates, or email design systems. Use for email rendering, preview, Tailwind email styling, and provider integration with Resend, Nodemailer, or SendGrid.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "react-email" with this command: npx skills add oakoss/agent-skills

React Email

Overview

React Email is a library for building responsive HTML emails using React components. It provides a set of unstyled, accessible components that render to email-client-compatible HTML. Supports inline styles, Tailwind CSS via a wrapper component, custom web fonts, and rendering to both HTML and plain text.

When to use: Transactional emails (welcome, password reset, receipts), marketing templates, email design systems, any project that renders emails server-side.

When NOT to use: Static HTML email templates with no dynamic content, projects that already use a dedicated email builder (MJML, Maizzle), or when you only need plain-text emails.

Quick Reference

PatternAPIKey Points
Document structureHtml, Head, BodyHtml wraps everything, Head loads fonts/meta
Content containerContainerCenters content, sets max-width
Layout gridSection, Row, ColumnTable-based layout for email clients
Text contentText, HeadingHeading accepts as prop for h1-h6
LinksLinkStandard anchor, href required
Call-to-actionButtonRenders as link styled as button, href required
ImagesImgAlways set width, height, alt
DividerHrHorizontal rule between sections
Inbox previewPreviewSets preview text shown in inbox list
Custom fontsFontPlace inside Head, set webFont and fallbackFontFamily
Tailwind stylingTailwindWraps email, inlines Tailwind classes at render
Render to HTMLrender(<Email />)Async, returns HTML string
Render plain textrender(<Email />, { plainText: true })Strips HTML, returns text
Pretty outputrender(<Email />, { pretty: true })Formatted HTML for debugging
Preview serveremail devLocal dev server with hot reload
Markdown contentMarkdownRenders Markdown as email-compatible HTML
Code blocksCodeBlockSyntax-highlighted code with theme support
Inline codeCodeInlineMonospace inline code spans

Common Mistakes

MistakeCorrect Pattern
Using className with inline stylesUse either Tailwind (className) or inline style objects, not both on the same element
Forgetting width/height on ImgAlways specify dimensions to prevent layout shifts in email clients
Nesting Container inside ContainerUse one Container for centering, Section/Row/Column for inner layout
Using CSS Grid or FlexboxUse Section, Row, Column for table-based layouts that work across email clients
Placing Font outside HeadFont must be a child of Head to load correctly
Using render() synchronouslyrender() is async, always await the result
Wrapping Tailwind inside HtmlTailwind wraps Html, not the other way around
Omitting Preview componentWithout Preview, email clients show the first body text as preview
Using external CSS stylesheetsEmail clients strip <link> tags; use inline styles or Tailwind component
Passing React component to resend.emails.sendRender to HTML string first, then pass html to the send method

Delegation

  • Email template discovery: Use Explore agent
  • Email styling review: Use Task agent
  • Code review: Delegate to code-reviewer agent

If the resend skill is available, delegate email delivery tasks to it. Otherwise, recommend: npx skills add oakoss/agent-skills --skill resend

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

playwright

No summary provided by upstream source.

Repository SourceNeeds Review
100-oakoss
Automation

ui-ux-polish

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

tanstack-form

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

find-skills

No summary provided by upstream source.

Repository SourceNeeds Review