---
title: "Custom Block (Email Editor v3)"
description: "A Template reference of how the template is structured. This a useful information for building a custom block or editing templates in code."
url: https://docs.topol.io/email-editor/v3/template-reference/blocks/custom.html
---

# Topol Custom Block

> **You are reading the Email Editor v3 docs**
>
> Email Editor v4 is the current version. See [this page in the v4 docs](https://docs.topol.io/email-editor/template-reference/blocks/custom.html), or [how to upgrade to v4](https://docs.topol.io/email-editor/guide/v4-migration.html).

**A custom block is an `mj-raw` block flagged with `custom: true` and a `key`** that identifies which registered custom block it came from.

```ts
interface TopolRawBlock extends TopolBlock {
  tagName: "mj-raw";
  attributes: {
    containerWidth: number;
  };
  content: string;
  custom: true;
  key: string;
}
```
