react-email-editor wraps Unlayer’s visual email builder for React apps. It loads and saves designs, exports HTML, and exposes the full Unlayer editor API through a ref.
Overview
The component embeds Unlayer’s production email designer so applications can offer template authoring without building a custom canvas. Props configure container height, editor options, onLoad and onReady callbacks, and styling for the host div.
Methods on the editor instance support loadDesign, saveDesign, and exportHtml with asynchronous callbacks, matching Unlayer’s documented API. Output is tested against common webmail clients per the project tables.
Version 2 modernizes packaging with root-only imports, ES2019 output, React 16.8 minimum, and destroys editors on unmount. Next.js App Router projects can import it directly because the bundle marks the component as client-only.
Optional Unlayer features include AI-assisted content tools, custom content blocks, and localization contributed through Unlayer’s translation project.
Key features
- Drag-and-drop email canvas
- Load and save design JSON
- Export responsive HTML
- Unlayer configuration options
- Editor lifecycle callbacks
- Client-only Next.js support
- Custom tool and locale hooks
- Tested webmail client output
Use cases
- In-app marketing email builders
- SaaS tools with user-designed templates
- Campaign editors tied to CRM data
- White-label newsletter creation flows
- Prototyping email layouts quickly