---
name: "react-email-modular-components"
description: "Author responsive, cross-client compatible HTML email templates using standard React components."
metadata:
  author: "Resend"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "build email template react-email"
  - "preview email react-email dev"
  - "responsive email button"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# React Email Cross-Client HTML Email Template Authoring

Builds email templates with React Email (@react-email/components): Html, Head, Preview, Body, Container, Section, Row, Column, Button, Img, Hr, Text, and testing across Outlook, Gmail, and Apple Mail.

## When to Invoke
Invoke this skill whenever you need to:
- build email template react-email
- preview email react-email dev
- responsive email button

## Execution SOP & Rules
1. Import components: import { Html, Body, Container, Button, Text } from '@react-email/components'.
2. Structure layout using tables under the hood: <Container><Text>Hello {name}</Text><Button href={url}>Reset</Button></Container>.
3. Run local email preview server: npx email dev to test templates with hot module reloading.
4. Export pure HTML: const html = render(<ResetPasswordEmail />); for sending via any SMTP provider.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
