Gathering detailed insights and metrics for react-email-editor
Gathering detailed insights and metrics for react-email-editor
Gathering detailed insights and metrics for react-email-editor
Gathering detailed insights and metrics for react-email-editor
@types/react-email-editor
Stub TypeScript definitions entry for react-email-editor, which provides its own types definitions
@editex/react-email-editor
Email Editor is a React component that allows users to create emails using a drag-and-drop interface.
@spatie/react-email-editor
Unlayer's Email Editor Component for React.js
ts-email-editor
Email Editor for React with SSR
Drag-n-Drop Email Editor Component for React.js
npm install react-email-editor
Typescript
Module System
Min. Node Version
Node Version
NPM Version
97.5
Supply Chain
98.9
Quality
81.3
Maintenance
100
Vulnerability
100
License
TypeScript (90.28%)
JavaScript (9.72%)
Total Downloads
6,622,624
Last Day
8,734
Last Week
42,926
Last Month
189,115
Last Year
2,255,111
MIT License
4,828 Stars
194 Commits
770 Forks
52 Watchers
9 Branches
12 Contributors
Updated on May 08, 2025
Minified
Minified + Gzipped
Latest Version
1.7.11
Package Id
react-email-editor@1.7.11
Unpacked Size
48.62 kB
Size
10.42 kB
File Count
14
NPM Version
8.1.0
Node Version
16.13.0
Published on
Jun 26, 2024
Cumulative downloads
Total Downloads
Last Day
54.2%
8,734
Compared to previous day
Last Week
3.1%
42,926
Compared to previous week
Last Month
-11.6%
189,115
Compared to previous month
Last Year
-2.2%
2,255,111
Compared to previous year
1
1
The excellent drag-n-drop email editor by Unlayer as a React.js wrapper component. This is the most powerful and developer friendly visual email builder for your app.
Video Overview |
---|
![]() |
Watch video overview: https://youtu.be/MIWhX-NF3j8 |
Check out the live demo here: https://react-email-editor-demo.netlify.app/ (Source Code)
Here's a blog post with a quickstart guide: https://medium.com/unlayer-blog/creating-a-drag-n-drop-email-editor-with-react-db1e9eb42386
The easiest way to use React Email Editor is to install it from NPM and include it in your own React build process.
npm install react-email-editor --save
Require the EmailEditor component and render it with JSX:
1import React, { useRef } from 'react'; 2import { render } from 'react-dom'; 3 4import EmailEditor, { EditorRef, EmailEditorProps } from 'react-email-editor'; 5 6const App = (props) => { 7 const emailEditorRef = useRef<EditorRef>(null); 8 9 const exportHtml = () => { 10 const unlayer = emailEditorRef.current?.editor; 11 12 unlayer?.exportHtml((data) => { 13 const { design, html } = data; 14 console.log('exportHtml', html); 15 }); 16 }; 17 18 const onReady: EmailEditorProps['onReady'] = (unlayer) => { 19 // editor is ready 20 // you can load your template here; 21 // the design json can be obtained by calling 22 // unlayer.loadDesign(callback) or unlayer.exportHtml(callback) 23 24 // const templateJson = { DESIGN JSON GOES HERE }; 25 // unlayer.loadDesign(templateJson); 26 }; 27 28 return ( 29 <div> 30 <div> 31 <button onClick={exportHtml}>Export HTML</button> 32 </div> 33 34 <EmailEditor ref={emailEditorRef} onReady={onReady} /> 35 </div> 36 ); 37}; 38 39render(<App />, document.getElementById('app'));
See the example source for a reference implementation.
All unlayer methods are available in the editor instance (emailEditorRef.current.editor
). See the Unlayer Docs for more information, or log the object in the console to explore it. Here are the most used ones:
method | params | description |
---|---|---|
loadDesign | Object data | Takes the design JSON and loads it in the editor |
saveDesign | Function callback | Returns the design JSON in a callback function |
exportHtml | Function callback | Returns the design HTML and JSON in a callback function |
editorId
{String
} HTML div id of the container where the editor will be embedded (optional)minHeight
{String
} minimum height to initialize the editor with (default 500px)onLoad
{Function
} called when the editor instance is createdonReady
{Function
} called when the editor has finished loadingoptions
{Object
} options passed to the Unlayer editor instance (default {})
style
{Object
} style object for the editor container (default {})Custom tools can help you add your own content blocks to the editor. Every application is different and needs different tools to reach it's full potential. Learn More
You can submit new language translations by creating a PR on this GitHub repo: https://github.com/unlayer/translations. Translations managed by PhraseApp
Copyright (c) 2023 Unlayer. MIT Licensed.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
0 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 2
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
38 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More