What problem does it solve?
Designing and maintaining consistent transactional emails across a product is hard without reusable templates. This Skill provides a structured approach to building email templates using React Email in the workspace's email-templates package, ensuring consistency, accessibility, and easy updates.
Core Features & Use Cases
- Domain-based organization: place templates in src/user/, src/order/, src/billing/, etc., enabling clear ownership and reuse.
- Consistent file naming: use kebab-case filenames like password-forgot.tsx and order-confirmation.tsx to simplify discovery.
- Strict exports and styling: templates must export a Props interface, a named component, a PreviewProps, and a default export, with styles defined as React.CSSProperties.
- Quick-start guidance and regeneration: after creating a template, run the codegen to refresh the template registry so it appears in the TemplateMap.
Quick Start
Create a new template file under src/user/ named password-forgot.tsx, export the component as specified, and ensure the required exports exist.