---
title: "Text Block"
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/template-reference/blocks/text.html
---

# Topol Text Block

**The text block renders an `mj-text`**, holding rich-text HTML in its `content` field.

```ts
interface TopolTextBlock extends TopolBlock {
  tagName: "mj-text";
  attributes: {
    align: "left" | "center" | "right";
    padding: string;
    "line-height": string | number;
    containerWidth: number;
    "css-class"?: "hide_on_mobile" | "hide_on_desktop";
  };
  content: string;
}
```
