Skip to content
Open in

Topol Social 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 social block renders an mj-social, a row of social icons where each network is a mj-social-element child.

ts
interface TopolSocialBlock extends TopolBlock {
  tagName: "mj-social";
  attributes: {
    padding: string;
    "text-mode": "false";
    "icon-size": string;
    align: string;
    containerWidth: number;
    "icon-padding"?: string;
    "css-class"?: "hide_on_mobile" | "hide_on_desktop";
  };
  children: TopolSocialElement[];
  style?: string;
}
ts
interface TopolSocialElement {
  tagName: "mj-social-element";
  attributes: {
    src: string;
    name: string;
    alt: string;
    href: string;
    "background-color": string;
  };
}