A professional, headerless email template builder built with React, TypeScript, and modern web technologies. Create beautiful email templates without the generic header - perfect for seamless integration into your applications.
- Headerless Design - Seamless integration into your app
- 8 Pre-built Components - All fully functional and customizable
- Custom React Hooks - Easy access to all functionality
- Real-time Preview - See changes as you build
- Export Options - HTML, JSON, and MJML formats
- Template Management - Save, load, and validate templates
- Cross-client Compatibility - Works with all major email clients
npm install mailyon
import { EmailTemplateBuilder } from 'mailyon';
function MyApp() {
return (
<div>
<h1>My Email App</h1>
<EmailTemplateBuilder />
</div>
);
}
Try the Live Demo - See it in action! Read the Full Documentation - Everything you need to know
Live Demo - Try it out now! Documentation - Complete guide & examples
- GitHub Repository - Source code
- NPM Package - Install
Component | Type | Description |
---|---|---|
Header | header |
Company branding and navigation |
Text | text |
Rich text content with formatting |
Image | image |
Responsive images with alignment |
Button | button |
Call-to-action buttons |
Divider | divider |
Horizontal lines and separators |
Footer | footer |
Company info and social links |
Spacer | spacer |
Vertical spacing elements |
Social Media | socialMedia |
Social platform icons and links |
Note: These are pre-built, fully functional components. Custom component types are not currently supported.
Main hook for template building functionality:
const { template, addComponent, updateComponent, deleteComponent } = useEmailTemplateBuilder();
Export templates in various formats:
const { exportAsHTML, exportAsJSON, exportAsMJML } = useEmailExport();
Manage template loading, saving, and validation:
const { loadTemplateFromJSON, createNewTemplate, validateTemplate } = useEmailTemplateManager();
// Main component
import { EmailTemplateBuilder } from 'mailyon';
// Custom hooks
import { useEmailTemplateBuilder, useEmailExport, useEmailTemplateManager } from 'mailyon';
// Utility functions
import { exportEmailTemplate, generateMJML, convertMJMLToHTML } from 'mailyon';
- React 16.8+ (for hooks support)
- Node.js 16+
- Tailwind CSS (for styling)
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - see LICENSE file for details.
- Issues: GitHub Issues
- Documentation: Wiki
- Live Demo: Try it out
Built with ❤️ using React, TypeScript, and Tailwind CSS
Mailyon - Professional email templates without the generic header!