[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FHH5AXFGEPY1RC8PXJ2FBT":3,"skill-same:01M6FHH5AXFGEPY1RC8PXJ2FBT":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":60,"install":61,"resources":74},"01M6FHH5AXFGEPY1RC8PXJ2FBT","react-email",null,"Create beautiful, responsive HTML emails using React components with React Email. Build transactional emails with modern components, support internationalization, and integrate with email service providers like Resend. Use when creating welcome emails, password resets, notifications, order confirmations, or any HTML email templates.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000005","邮件与沟通","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"react","react email","email","password","transactional","with","emails","responsive","resend","integrate","html","use","github","Providers","notifications","create","welcome","react components","components","support","2026-11-10 10:12:30",false,"---\nname: react-email\ndescription: Create beautiful, responsive HTML emails using React components with React Email. Build transactional emails with modern components, support internationalization, and integrate with email service providers like Resend. Use when creating welcome emails, password resets, notifications, order confirmations, or any HTML email templates.\nlicense: MIT\nmetadata:\n  author: Resend\n  repository: https:\u002F\u002Fgithub.com\u002Fresend\u002Freact-email\n---\n\n# React Email\n\nBuild and send HTML emails using React components - a modern, component-based approach to email development that works across all major email clients.\n\n## Installation\n\nYou need to scaffold a new React Email project using the create-email CLI. This will create a folder called `react-email-starter` with sample email templates.\n\nUsing npm:\n```sh\nnpx create-email@latest\n```\n\nUsing yarn:\n```sh\nyarn create email\n```\n\nUsing pnpm:\n```sh\npnpm create email\n```\n\nUsing bun:\n```sh\nbun create email\n```\n\n## Navigate to Project Directory\n\nYou must change into the newly created project folder:\n\n```sh\ncd react-email-starter\n```\n\n## Install Dependencies\n\nYou need to install all project dependencies before running the development server.\n\nUsing npm:\n```sh\nnpm install\n```\n\nUsing yarn:\n```sh\nyarn\n```\n\nUsing pnpm:\n```sh\npnpm install\n```\n\nUsing bun:\n```sh\nbun install\n```\n\n## Start the Development Server\n\nYour task is to start the local preview server to view and edit email templates.\n\nUsing npm:\n```sh\nnpm run dev\n```\n\nUsing yarn:\n```sh\nyarn dev\n```\n\nUsing pnpm:\n```sh\npnpm dev\n```\n\nUsing bun:\n```sh\nbun dev\n```\n\n## Verify Installation\n\nYou must confirm the development server is running by checking that localhost:3000 is accessible. The server will display a preview interface where you can view email templates from the `emails` folder.\n\nEXECUTE NOW: Complete the above TODO list to achieve: The React Email development server is running and accessible at localhost:3000, displaying email template previews.\n\n### Notes on installation\nAssuming React Email is installed in an existing project, update the top-level package.json file with a script to run the React Email preview server.\n\n```json\n{\n  \"scripts\": {\n    \"email\": \"email dev --dir emails --port 3000\"\n  }\n}\n```\n\nMake sure the path to the emails folder is relative to the base project directory.\n\n\n### tsconfig.json updating or creation\n\nEnsure the tsconfig.json includes proper support for jsx.\n\n## Basic Email Template\n\nReplace the sample email templates. Here is how to create a new email template:\n\nCreate an email component with proper structure using the Tailwind component for styling:\n\n```tsx\nimport {\n  Html,\n  Head,\n  Preview,\n  Body,\n  Container,\n  Heading,\n  Text,\n  Button,\n  Tailwind,\n  pixelBasedPreset\n} from '@react-email\u002Fcomponents';\n\ninterface WelcomeEmailProps {\n  name: string;\n  verificationUrl: string;\n}\n\nexport default function WelcomeEmail({ name, verificationUrl }: WelcomeEmailProps) {\n  return (\n    \u003CHtml lang=\"en\">\n      \u003CTailwind\n        config={{\n          presets: [pixelBasedPreset],\n          theme: {\n            extend: {\n              colors: {\n                brand: '#007bff',\n              },\n            },\n          },\n        }}\n      >\n        \u003CHead \u002F>\n        \u003CPreview>Welcome - Verify your email\u003C\u002FPreview>\n        \u003CBody className=\"bg-gray-100 font-sans\">\n          \u003CContainer className=\"max-w-xl mx-auto p-5\">\n            \u003CHeading className=\"text-2xl text-gray-800\">\n              Welcome!\n            \u003C\u002FHeading>\n            \u003CText className=\"text-base text-gray-800\">\n              Hi {name}, thanks for signing up!\n            \u003C\u002FText>\n            \u003CButton\n              href={verificationUrl}\n              className=\"bg-brand text-white px-5 py-3 rounded block text-center no-underline\"\n            >\n              Verify Email\n            \u003C\u002FButton>\n          \u003C\u002FContainer>\n        \u003C\u002FBody>\n      \u003C\u002FTailwind>\n    \u003C\u002FHtml>\n  );\n}\n\n\u002F\u002F Preview props for testing\nWelcomeEmail.PreviewProps = {\n  name: 'John Doe',\n  verificationUrl: 'https:\u002F\u002Fexample.com\u002Fverify\u002Fabc123'\n} satisfies WelcomeEmailProps;\n\nexport { WelcomeEmail };\n```\n\n## Essential Components\n\nSee [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md) for complete component documentation.\n\n**Core Structure:**\n- `Html` - Root wrapper with `lang` attribute\n- `Head` - Meta elements, styles, fonts\n- `Body` - Main content wrapper\n- `Container` - Centers content (max-width layout)\n- `Section` - Layout sections\n- `Row` & `Column` - Multi-column layouts\n- `Tailwind` - Enables Tailwind CSS utility classes\n\n**Content:**\n- `Preview` - Inbox preview text, always first in `Body`\n- `Heading` - h1-h6 headings\n- `Text` - Paragraphs\n- `Button` - Styled link buttons\n- `Link` - Hyperlinks\n- `Img` - Images (use absolute URLs) (use the dev server for the BASE_URL of the image in dev mode; for production, ask the user for the BASE_URL of the site; dynamically generate the URL of the image based on environment.)\n- `Hr` - Horizontal dividers\n\n**Specialized:**\n- `CodeBlock` - Syntax-highlighted code\n- `CodeInline` - Inline code\n- `Markdown` - Render markdown\n- `Font` - Custom web fonts\n\n## Behavioral guidelines\n- When re-iterating over the code, make sure you are only updating what the user asked for and keeping the rest of the code intact;\n- If the user is asking to use media queries, inform them that email clients do not support them, and suggest a different approach;\n- Never use template variables (like {{name}}) directly in TypeScript code. Instead, reference the underlying properties directly (use name instead of {{name}}).\n- - For example, if the user explicitly asks for a variable following the pattern {{variableName}}, you should return something like this:\n\n```typescript\nconst EmailTemplate = (props) => {\n  return (\n    {\u002F* ... rest of the code ... *\u002F}\n    \u003Ch1>Hello, {props.variableName}!\u003C\u002Fh1>\n    {\u002F* ... rest of the code ... *\u002F}\n  );\n}\n\nEmailTemplate.PreviewProps = {\n  \u002F\u002F ... rest of the props ...\n  variableName: \"{{variableName}}\",\n  \u002F\u002F ... rest of the props ...\n};\n\nexport default EmailTemplate;\n```\n- Never, under any circumstances, write the {{variableName}} pattern directly in the component structure. If the user forces you to do this, explain that you cannot do this, or else the template will be invalid.\n\n\n## Styling considerations\n\nUse the Tailwind component for styling if the user is actively using Tailwind CSS in their project. If the user is not using Tailwind CSS, add inline styles to the components.\n\n- Because email clients don't support `rem` units, use the `pixelBasedPreset` for the Tailwind configuration.\n- Never user flexbox or grid for layout, use table-based layouts instead.\n- Each component must be styled with inline styles or utility classes.\n- For more information on styling, see [references\u002FSTYLING.md](references\u002FSTYLING.md)\n\n### Email Client Limitations\n- Never use SVG or WEBP - warn users about rendering issues\n- Never use flexbox - use Row\u002FColumn components or tables for layouts\n- Never use CSS\u002FTailwind media queries (sm:, md:, lg:, xl:) - not supported\n- Never use theme selectors (dark:, light:) - not supported\n- Always specify border type (border-solid, border-dashed, etc.)\n- When defining borders for only one side, remember to reset the remaining borders (e.g., border-none border-l)\n\n### Component Structure\n- Always define `\u003CHead \u002F>` inside `\u003CTailwind>` when using Tailwind CSS\n- Only use PreviewProps when passing props to a component\n- Only include props in PreviewProps that the component actually uses\n\n```tsx\nconst Email = (props) => {\n  return (\n    \u003Cdiv>\n      \u003Ca href={props.source}>click here if you want candy ?\u003C\u002Fa>\n    \u003C\u002Fdiv>\n  );\n}\n\nEmail.PreviewProps = {\n  source: \"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=dQw4w9WgXcQ\",\n};\n```\n\n### Default Structure\n- Body: `font-sans py-10 bg-gray-100`\n- Container: white, centered, content left-aligned\n- Footer: physical address, unsubscribe link, current year with `m-0` on address\u002Fcopyright\n\n### Typography\n- Titles: bold, larger font, larger margins\n- Paragraphs: regular weight, smaller font, smaller margins\n- Use consistent spacing respecting content hierarchy\n\n### Images\n- Only include if user requests\n- Never use fixed width\u002Fheight - use responsive units (w-full, h-auto)\n- Never distort user-provided images\n- Never create SVG images - only use provided or web images\n\n### Buttons\n- Always use `box-border` to prevent padding overflow\n\n### Layout\n- Always mobile-friendly by default\n- Use stacked layouts that work on all screen sizes\n- Remove default spacing\u002Fmargins\u002Fpadding between list items\n\n### Dark Mode\nWhen requested: container black (#000), background dark gray (#151516)\n\n### Best Practices\n- Choose colors, layout, and copy based on user's request\n- Make templates unique, not generic\n- Use keywords in email body to increase conversion\n\n## Rendering\n\n### Convert to HTML\n\n```tsx\nimport { render } from '@react-email\u002Fcomponents';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst html = await render(\n  \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n);\n```\n\n### Convert to Plain Text\n\n```tsx\nimport { render } from '@react-email\u002Fcomponents';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst text = await render(\u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>, { plainText: true });\n```\n\n## Sending\n\nReact Email supports sending with any email service provider. If the user wants to know how to send, view the [Sending guidelines](references\u002FSENDING.md).\n\nQuick example using the Resend SDK for Node.js:\n\n```tsx\nimport { Resend } from 'resend';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst resend = new Resend(process.env.RESEND_API_KEY);\n\nconst { data, error } = await resend.emails.send({\n  from: 'Acme \u003Conboarding@resend.dev>',\n  to: ['user@example.com'],\n  subject: 'Welcome to Acme',\n  react: \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n});\n\nif (error) {\n  console.error('Failed to send:', error);\n}\n```\n\nThe Node SDK automatically handles the plain-text rendering and HTML rendering for you.\n\n## Internationalization\n\nSee [references\u002FI18N.md](references\u002FI18N.md) for complete i18n documentation.\n\nReact Email supports three i18n libraries: next-intl, react-i18next, and react-intl.\n\n### Quick Example (next-intl)\n\n```tsx\nimport { createTranslator } from 'next-intl';\nimport {\n  Html,\n  Body,\n  Container,\n  Text,\n  Button,\n  Tailwind,\n  pixelBasedPreset\n} from '@react-email\u002Fcomponents';\n\ninterface EmailProps {\n  name: string;\n  locale: string;\n}\n\nexport default async function WelcomeEmail({ name, locale }: EmailProps) {\n  const t = createTranslator({\n    messages: await import(\\`..\u002Fmessages\u002F\\${locale}.json\\`),\n    namespace: 'welcome-email',\n    locale\n  });\n\n  return (\n    \u003CHtml lang={locale}>\n      \u003CTailwind config={{ presets: [pixelBasedPreset] }}>\n        \u003CBody className=\"bg-gray-100 font-sans\">\n          \u003CContainer className=\"max-w-xl mx-auto p-5\">\n            \u003CText className=\"text-base text-gray-800\">{t('greeting')} {name},\u003C\u002FText>\n            \u003CText className=\"text-base text-gray-800\">{t('body')}\u003C\u002FText>\n            \u003CButton href=\"https:\u002F\u002Fexample.com\" className=\"bg-blue-600 text-white px-5 py-3 rounded\">\n              {t('cta')}\n            \u003C\u002FButton>\n          \u003C\u002FContainer>\n        \u003C\u002FBody>\n      \u003C\u002FTailwind>\n    \u003C\u002FHtml>\n  );\n}\n```\n\nMessage files (\\`messages\u002Fen.json\\`, \\`messages\u002Fes.json\\`, etc.):\n\n```json\n{\n  \"welcome-email\": {\n    \"greeting\": \"Hi\",\n    \"body\": \"Thanks for signing up!\",\n    \"cta\": \"Get Started\"\n  }\n}\n```\n\n## Email Best Practices\n\n1. **Test across email clients** - Test in Gmail, Outlook, Apple Mail, Yahoo Mail. Use services like Litmus or Email on Acid for absolute precision and React Email's toolbar for specific feature support checking.\n\n2. **Keep it responsive** - Max-width around 600px, test on mobile devices.\n\n3. **Use absolute image URLs** - Host on reliable CDN, always include \\`alt\\` text.\n\n4. **Provide plain text version** - Required for accessibility and some email clients.\n\n5. **Keep file size under 102KB** - Gmail clips larger emails.\n\n6. **Add proper TypeScript types** - Define interfaces for all email props.\n\n7. **Include preview props** - Add \\`.PreviewProps\\` to components for development testing.\n\n8. **Handle errors** - Always check for errors when sending emails.\n\n9.  **Use verified domains** - For production, use verified domains in \\`from\\` addresses.\n\n## Common Patterns\n\nSee [references\u002FPATTERNS.md](references\u002FPATTERNS.md) for complete examples including:\n- Password reset emails\n- Order confirmations with product lists\n- Notification emails with code blocks\n- Multi-column layouts\n- Email templates with custom fonts\n\n## Additional Resources\n\n- [React Email Documentation](https:\u002F\u002Freact.email\u002Fdocs\u002Fllms.txt)\n- [React Email GitHub](https:\u002F\u002Fgithub.com\u002Fresend\u002Freact-email)\n- [Resend Documentation](https:\u002F\u002Fresend.com\u002Fdocs\u002Fllms.txt)\n- [Email Client CSS Support](https:\u002F\u002Fwww.caniemail.com)\n- Component Reference: [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md)\n- Internationalization Guide: [references\u002FI18N.md](references\u002FI18N.md)\n- Common Patterns: [references\u002FPATTERNS.md](references\u002FPATTERNS.md)\n","# React Email\n\nBuild and send HTML emails using React components - a modern, component-based approach to email development that works across all major email clients.\n\n## Installation\n\nYou need to scaffold a new React Email project using the create-email CLI. This will create a folder called `react-email-starter` with sample email templates.\n\nUsing npm:\n```sh\nnpx create-email@latest\n```\n\nUsing yarn:\n```sh\nyarn create email\n```\n\nUsing pnpm:\n```sh\npnpm create email\n```\n\nUsing bun:\n```sh\nbun create email\n```\n\n## Navigate to Project Directory\n\nYou must change into the newly created project folder:\n\n```sh\ncd react-email-starter\n```\n\n## Install Dependencies\n\nYou need to install all project dependencies before running the development server.\n\nUsing npm:\n```sh\nnpm install\n```\n\nUsing yarn:\n```sh\nyarn\n```\n\nUsing pnpm:\n```sh\npnpm install\n```\n\nUsing bun:\n```sh\nbun install\n```\n\n## Start the Development Server\n\nYour task is to start the local preview server to view and edit email templates.\n\nUsing npm:\n```sh\nnpm run dev\n```\n\nUsing yarn:\n```sh\nyarn dev\n```\n\nUsing pnpm:\n```sh\npnpm dev\n```\n\nUsing bun:\n```sh\nbun dev\n```\n\n## Verify Installation\n\nYou must confirm the development server is running by checking that localhost:3000 is accessible. The server will display a preview interface where you can view email templates from the `emails` folder.\n\nEXECUTE NOW: Complete the above TODO list to achieve: The React Email development server is running and accessible at localhost:3000, displaying email template previews.\n\n### Notes on installation\nAssuming React Email is installed in an existing project, update the top-level package.json file with a script to run the React Email preview server.\n\n```json\n{\n  \"scripts\": {\n    \"email\": \"email dev --dir emails --port 3000\"\n  }\n}\n```\n\nMake sure the path to the emails folder is relative to the base project directory.\n\n\n### tsconfig.json updating or creation\n\nEnsure the tsconfig.json includes proper support for jsx.\n\n## Basic Email Template\n\nReplace the sample email templates. Here is how to create a new email template:\n\nCreate an email component with proper structure using the Tailwind component for styling:\n\n```tsx\nimport {\n  Html,\n  Head,\n  Preview,\n  Body,\n  Container,\n  Heading,\n  Text,\n  Button,\n  Tailwind,\n  pixelBasedPreset\n} from '@react-email\u002Fcomponents';\n\ninterface WelcomeEmailProps {\n  name: string;\n  verificationUrl: string;\n}\n\nexport default function WelcomeEmail({ name, verificationUrl }: WelcomeEmailProps) {\n  return (\n    \u003CHtml lang=\"en\">\n      \u003CTailwind\n        config={{\n          presets: [pixelBasedPreset],\n          theme: {\n            extend: {\n              colors: {\n                brand: '#007bff',\n              },\n            },\n          },\n        }}\n      >\n        \u003CHead \u002F>\n        \u003CPreview>Welcome - Verify your email\u003C\u002FPreview>\n        \u003CBody className=\"bg-gray-100 font-sans\">\n          \u003CContainer className=\"max-w-xl mx-auto p-5\">\n            \u003CHeading className=\"text-2xl text-gray-800\">\n              Welcome!\n            \u003C\u002FHeading>\n            \u003CText className=\"text-base text-gray-800\">\n              Hi {name}, thanks for signing up!\n            \u003C\u002FText>\n            \u003CButton\n              href={verificationUrl}\n              className=\"bg-brand text-white px-5 py-3 rounded block text-center no-underline\"\n            >\n              Verify Email\n            \u003C\u002FButton>\n          \u003C\u002FContainer>\n        \u003C\u002FBody>\n      \u003C\u002FTailwind>\n    \u003C\u002FHtml>\n  );\n}\n\n\u002F\u002F Preview props for testing\nWelcomeEmail.PreviewProps = {\n  name: 'John Doe',\n  verificationUrl: 'https:\u002F\u002Fexample.com\u002Fverify\u002Fabc123'\n} satisfies WelcomeEmailProps;\n\nexport { WelcomeEmail };\n```\n\n## Essential Components\n\nSee [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md) for complete component documentation.\n\n**Core Structure:**\n- `Html` - Root wrapper with `lang` attribute\n- `Head` - Meta elements, styles, fonts\n- `Body` - Main content wrapper\n- `Container` - Centers content (max-width layout)\n- `Section` - Layout sections\n- `Row` & `Column` - Multi-column layouts\n- `Tailwind` - Enables Tailwind CSS utility classes\n\n**Content:**\n- `Preview` - Inbox preview text, always first in `Body`\n- `Heading` - h1-h6 headings\n- `Text` - Paragraphs\n- `Button` - Styled link buttons\n- `Link` - Hyperlinks\n- `Img` - Images (use absolute URLs) (use the dev server for the BASE_URL of the image in dev mode; for production, ask the user for the BASE_URL of the site; dynamically generate the URL of the image based on environment.)\n- `Hr` - Horizontal dividers\n\n**Specialized:**\n- `CodeBlock` - Syntax-highlighted code\n- `CodeInline` - Inline code\n- `Markdown` - Render markdown\n- `Font` - Custom web fonts\n\n## Behavioral guidelines\n- When re-iterating over the code, make sure you are only updating what the user asked for and keeping the rest of the code intact;\n- If the user is asking to use media queries, inform them that email clients do not support them, and suggest a different approach;\n- Never use template variables (like {{name}}) directly in TypeScript code. Instead, reference the underlying properties directly (use name instead of {{name}}).\n- - For example, if the user explicitly asks for a variable following the pattern {{variableName}}, you should return something like this:\n\n```typescript\nconst EmailTemplate = (props) => {\n  return (\n    {\u002F* ... rest of the code ... *\u002F}\n    \u003Ch1>Hello, {props.variableName}!\u003C\u002Fh1>\n    {\u002F* ... rest of the code ... *\u002F}\n  );\n}\n\nEmailTemplate.PreviewProps = {\n  \u002F\u002F ... rest of the props ...\n  variableName: \"{{variableName}}\",\n  \u002F\u002F ... rest of the props ...\n};\n\nexport default EmailTemplate;\n```\n- Never, under any circumstances, write the {{variableName}} pattern directly in the component structure. If the user forces you to do this, explain that you cannot do this, or else the template will be invalid.\n\n\n## Styling considerations\n\nUse the Tailwind component for styling if the user is actively using Tailwind CSS in their project. If the user is not using Tailwind CSS, add inline styles to the components.\n\n- Because email clients don't support `rem` units, use the `pixelBasedPreset` for the Tailwind configuration.\n- Never user flexbox or grid for layout, use table-based layouts instead.\n- Each component must be styled with inline styles or utility classes.\n- For more information on styling, see [references\u002FSTYLING.md](references\u002FSTYLING.md)\n\n### Email Client Limitations\n- Never use SVG or WEBP - warn users about rendering issues\n- Never use flexbox - use Row\u002FColumn components or tables for layouts\n- Never use CSS\u002FTailwind media queries (sm:, md:, lg:, xl:) - not supported\n- Never use theme selectors (dark:, light:) - not supported\n- Always specify border type (border-solid, border-dashed, etc.)\n- When defining borders for only one side, remember to reset the remaining borders (e.g., border-none border-l)\n\n### Component Structure\n- Always define `\u003CHead \u002F>` inside `\u003CTailwind>` when using Tailwind CSS\n- Only use PreviewProps when passing props to a component\n- Only include props in PreviewProps that the component actually uses\n\n```tsx\nconst Email = (props) => {\n  return (\n    \u003Cdiv>\n      \u003Ca href={props.source}>click here if you want candy ?\u003C\u002Fa>\n    \u003C\u002Fdiv>\n  );\n}\n\nEmail.PreviewProps = {\n  source: \"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=dQw4w9WgXcQ\",\n};\n```\n\n### Default Structure\n- Body: `font-sans py-10 bg-gray-100`\n- Container: white, centered, content left-aligned\n- Footer: physical address, unsubscribe link, current year with `m-0` on address\u002Fcopyright\n\n### Typography\n- Titles: bold, larger font, larger margins\n- Paragraphs: regular weight, smaller font, smaller margins\n- Use consistent spacing respecting content hierarchy\n\n### Images\n- Only include if user requests\n- Never use fixed width\u002Fheight - use responsive units (w-full, h-auto)\n- Never distort user-provided images\n- Never create SVG images - only use provided or web images\n\n### Buttons\n- Always use `box-border` to prevent padding overflow\n\n### Layout\n- Always mobile-friendly by default\n- Use stacked layouts that work on all screen sizes\n- Remove default spacing\u002Fmargins\u002Fpadding between list items\n\n### Dark Mode\nWhen requested: container black (#000), background dark gray (#151516)\n\n### Best Practices\n- Choose colors, layout, and copy based on user's request\n- Make templates unique, not generic\n- Use keywords in email body to increase conversion\n\n## Rendering\n\n### Convert to HTML\n\n```tsx\nimport { render } from '@react-email\u002Fcomponents';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst html = await render(\n  \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n);\n```\n\n### Convert to Plain Text\n\n```tsx\nimport { render } from '@react-email\u002Fcomponents';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst text = await render(\u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>, { plainText: true });\n```\n\n## Sending\n\nReact Email supports sending with any email service provider. If the user wants to know how to send, view the [Sending guidelines](references\u002FSENDING.md).\n\nQuick example using the Resend SDK for Node.js:\n\n```tsx\nimport { Resend } from 'resend';\nimport { WelcomeEmail } from '.\u002Femails\u002Fwelcome';\n\nconst resend = new Resend(process.env.RESEND_API_KEY);\n\nconst { data, error } = await resend.emails.send({\n  from: 'Acme \u003Conboarding@resend.dev>',\n  to: ['user@example.com'],\n  subject: 'Welcome to Acme',\n  react: \u003CWelcomeEmail name=\"John\" verificationUrl=\"https:\u002F\u002Fexample.com\u002Fverify\" \u002F>\n});\n\nif (error) {\n  console.error('Failed to send:', error);\n}\n```\n\nThe Node SDK automatically handles the plain-text rendering and HTML rendering for you.\n\n## Internationalization\n\nSee [references\u002FI18N.md](references\u002FI18N.md) for complete i18n documentation.\n\nReact Email supports three i18n libraries: next-intl, react-i18next, and react-intl.\n\n### Quick Example (next-intl)\n\n```tsx\nimport { createTranslator } from 'next-intl';\nimport {\n  Html,\n  Body,\n  Container,\n  Text,\n  Button,\n  Tailwind,\n  pixelBasedPreset\n} from '@react-email\u002Fcomponents';\n\ninterface EmailProps {\n  name: string;\n  locale: string;\n}\n\nexport default async function WelcomeEmail({ name, locale }: EmailProps) {\n  const t = createTranslator({\n    messages: await import(\\`..\u002Fmessages\u002F\\${locale}.json\\`),\n    namespace: 'welcome-email',\n    locale\n  });\n\n  return (\n    \u003CHtml lang={locale}>\n      \u003CTailwind config={{ presets: [pixelBasedPreset] }}>\n        \u003CBody className=\"bg-gray-100 font-sans\">\n          \u003CContainer className=\"max-w-xl mx-auto p-5\">\n            \u003CText className=\"text-base text-gray-800\">{t('greeting')} {name},\u003C\u002FText>\n            \u003CText className=\"text-base text-gray-800\">{t('body')}\u003C\u002FText>\n            \u003CButton href=\"https:\u002F\u002Fexample.com\" className=\"bg-blue-600 text-white px-5 py-3 rounded\">\n              {t('cta')}\n            \u003C\u002FButton>\n          \u003C\u002FContainer>\n        \u003C\u002FBody>\n      \u003C\u002FTailwind>\n    \u003C\u002FHtml>\n  );\n}\n```\n\nMessage files (\\`messages\u002Fen.json\\`, \\`messages\u002Fes.json\\`, etc.):\n\n```json\n{\n  \"welcome-email\": {\n    \"greeting\": \"Hi\",\n    \"body\": \"Thanks for signing up!\",\n    \"cta\": \"Get Started\"\n  }\n}\n```\n\n## Email Best Practices\n\n1. **Test across email clients** - Test in Gmail, Outlook, Apple Mail, Yahoo Mail. Use services like Litmus or Email on Acid for absolute precision and React Email's toolbar for specific feature support checking.\n\n2. **Keep it responsive** - Max-width around 600px, test on mobile devices.\n\n3. **Use absolute image URLs** - Host on reliable CDN, always include \\`alt\\` text.\n\n4. **Provide plain text version** - Required for accessibility and some email clients.\n\n5. **Keep file size under 102KB** - Gmail clips larger emails.\n\n6. **Add proper TypeScript types** - Define interfaces for all email props.\n\n7. **Include preview props** - Add \\`.PreviewProps\\` to components for development testing.\n\n8. **Handle errors** - Always check for errors when sending emails.\n\n9.  **Use verified domains** - For production, use verified domains in \\`from\\` addresses.\n\n## Common Patterns\n\nSee [references\u002FPATTERNS.md](references\u002FPATTERNS.md) for complete examples including:\n- Password reset emails\n- Order confirmations with product lists\n- Notification emails with code blocks\n- Multi-column layouts\n- Email templates with custom fonts\n\n## Additional Resources\n\n- [React Email Documentation](https:\u002F\u002Freact.email\u002Fdocs\u002Fllms.txt)\n- [React Email GitHub](https:\u002F\u002Fgithub.com\u002Fresend\u002Freact-email)\n- [Resend Documentation](https:\u002F\u002Fresend.com\u002Fdocs\u002Fllms.txt)\n- [Email Client CSS Support](https:\u002F\u002Fwww.caniemail.com)\n- Component Reference: [references\u002FCOMPONENTS.md](references\u002FCOMPONENTS.md)\n- Internationalization Guide: [references\u002FI18N.md](references\u002FI18N.md)\n- Common Patterns: [references\u002FPATTERNS.md](references\u002FPATTERNS.md)\n",{"name":5,"license":14,"metadata":51,"description":7},{"author":52,"repository":53},"Resend","https:\u002F\u002Fgithub.com\u002Fresend\u002Freact-email","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fchristina-de-martinez\u002Freact-email-skills",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add kbarbel640-del\u002Fskills --skill react-email",{"tool":67,"command":68},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill react-email",{"tool":70,"command":71},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill react-email","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002FSKILL.md",true,[75,81,85,89,93,97],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"_meta.json","REFERENCE","参考文档",303,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002F_meta.json",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"README.md",1702,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002FREADME.md",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002FCOMPONENTS.md",11331,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002Freferences\u002FCOMPONENTS.md",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002FI18N.md",14368,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002Freferences\u002FI18N.md",{"path":94,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002FPATTERNS.md",22142,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002Freferences\u002FPATTERNS.md",{"path":98,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002FSENDING.md",3034,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fchristina-de-martinez\u002Freact-email-skills\u002Freferences\u002FSENDING.md",[102,132,157,178,184,204],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":113,"publishedAt":46},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[108],{"categoryNo":109,"categoryName":110,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[114,115,116,31,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],"crowd prompting","prompting","api","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":141,"publishedAt":46},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[138],{"categoryNo":139,"categoryName":140,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[142,116,143,144,145,146,41,147,148,149,150,151,152,153,154,155,156,120,37],"dilemm ai","arena","analyze","browser","openclaw agent","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":166,"publishedAt":46},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[163],{"categoryNo":164,"categoryName":165,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[167,168,169,170,171,172,173,31,174,155,37,175,116,176,177],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":179,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":183,"publishedAt":46},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[182],{"categoryNo":164,"categoryName":165,"taxonomyType":20,"taxonomyTypeDesc":21},[170,169,168,167,177,172,173,31,171,155,37,174,175,116,176],{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":46},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[191,192,193,194,195,196,197,198,199,200,201,202,203],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":214,"publishedAt":46},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[210,211],{"categoryNo":139,"categoryName":140,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":212,"categoryName":213,"taxonomyType":111,"taxonomyTypeDesc":112},"01JBSEEDCAT000000000000037","律师与法务",[215,216,217,218,31,219,220,54,221,175,222,223,224,225,226,129,227,228,38],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance"]