Loading...
Loading...
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.
npx skill4agent add oakoss/agent-skills react-email| Pattern | API | Key Points |
|---|---|---|
| Document structure | | |
| Content container | | Centers content, sets |
| Layout grid | | Table-based layout for email clients |
| Text content | | |
| Links | | Standard anchor, |
| Call-to-action | | Renders as link styled as button, |
| Images | | Always set |
| Divider | | Horizontal rule between sections |
| Inbox preview | | Sets preview text shown in inbox list |
| Custom fonts | | Place inside |
| Tailwind styling | | Wraps email, inlines Tailwind classes at render |
| Render to HTML | | Async, returns HTML string |
| Render plain text | | Strips HTML, returns text |
| Pretty output | | Formatted HTML for debugging |
| Preview server | | Local dev server with hot reload |
| Markdown content | | Renders Markdown as email-compatible HTML |
| Code blocks | | Syntax-highlighted code with theme support |
| Inline code | | Monospace inline code spans |
| Mistake | Correct Pattern |
|---|---|
Using | Use either Tailwind ( |
Forgetting | Always specify dimensions to prevent layout shifts in email clients |
Nesting | Use one |
| Using CSS Grid or Flexbox | Use |
Placing | |
Using | |
Wrapping | |
Omitting | Without |
| Using external CSS stylesheets | Email clients strip |
Passing React component to | Render to HTML string first, then pass |
ExploreTaskcode-reviewerIf theskill is available, delegate email delivery tasks to it. Otherwise, recommend:resendnpx skills add oakoss/agent-skills --skill resend