Skip to content

Built-in blocks ​

The editor ships with a set of email-safe content blocks plus container layouts. Every content block has a stable type id — pass it to disabledBlocks to hide a built-in, or use it as a starting point for your own custom block.

vue
<!-- e.g. hide the HTML and Spacer blocks -->
<EmailEditor :disabled-blocks="['html', 'spacer']" />

Container layouts ​

The Container rail holds structural rows. Drag one onto the canvas, then drop content blocks into its columns. Columns are responsive (they stack on mobile in the exported HTML).

LayoutColumnsRatio
1 Column1full width
2 Columns250 / 50
3 Columns333 / 33 / 33
4 Columns425 × 4
1 : 2233 / 67
2 : 1267 / 33

Row & column settings (background color, padding, vertical alignment) appear in the inspector when you select the container or a column.

Content blocks ​

BlocktypeWhat it is
HeadingheadingA headline with rich text.
TextparagraphA body-text paragraph with inline formatting.
ButtonbuttonA call-to-action link styled as a button.
ImageimageAn image, optionally linked.
DividerdividerA horizontal rule / separator.
SpacerspacerVertical empty space.
SocialsocialA row of social-network icons.
MenumenuA navigation row of text links.
HTMLhtmlA raw custom-HTML escape hatch.

Heading — heading ​

A headline rendered with the inline rich-text editor (select text for the bold/italic/link/color bubble menu). Settings: tag (H1–H3), link, font family, size, weight, color, alignment, line height, letter spacing, padding.

Text — paragraph ​

Body copy with inline formatting — bold, italic, underline, strikethrough, links, and bullet/numbered lists via the bubble menu. Settings: font family, size, color, alignment, line height, padding.

Button — button ​

A call-to-action. The label is editable inline; the whole button is a link. Settings: label, link + target, background color, text color, font family, size, weight, border radius, border, alignment, full-width toggle, padding.

Image — image ​

A single image. Set the source via URL or upload (uses your onImageUpload handler, base64 otherwise). Settings: source, alt text, link, width, alignment, border radius, padding.

Divider — divider ​

A horizontal separator line. Settings: color, thickness, line style, width, alignment, padding.

Spacer — spacer ​

Pure vertical whitespace for controlling rhythm. Settings: height (px).

Social — social ​

A horizontal row of social icons. Comes with predefined networks (loaded from the Simple Icons CDN) and supports custom items with your own icon URL + link. For maximum email-client compatibility (e.g. Outlook), supply a custom PNG icon. Settings: item list (network/custom, link, icon URL), icon size, spacing, alignment, padding.

A row of navigation links (e.g. a header/footer nav). Settings: item list (label + link), layout, font, color, spacing, alignment, padding.

HTML — html ​

An escape hatch for arbitrary HTML when no block fits. The markup is emitted as-is into the export, so keep it email-safe (tables + inline styles). Settings: raw HTML source.

Adding your own ​

Register custom blocks with the blocks prop — they merge with the built-ins. See Custom blocks.

vue
<EmailEditor :blocks="[rating]" />

Released under the MIT License.