Appearance
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, or how to upgrade to v4.
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;
}