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

# Topol Button 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/button.html), or [how to upgrade to v4](https://docs.topol.io/email-editor/guide/v4-migration.html).

**The button block renders an `mj-button`**: a styled, linkable call-to-action with its label in `content`.

```ts
interface TopolButtonBlock extends TopolBlock {
  tagName: "mj-button";
  attributes: {
    align: string;
    "background-color": string;
    color: string;
    "border-radius": string;
    "font-size": string;
    padding: string;
    "inner-padding": string;
    href: string;
    "font-family": string;
    containerWidth: number;
    width?: number;
    border?: string;
    "line-height"?: string | number;
    "css-class"?: "hide_on_mobile" | "hide_on_desktop";
  };
  content: string;
}
```
