Skip to main content

Email Elements

All elements need to go inside an elements array:​

elements: [
// elements go here separated by commas
// you can put as many elements here as needed
],

Ex:

elements: [
{ title: { text: "Heading" } },
{ image: { src: "https://images.example.com"} },
{ p: { text: "Here is some supporting text" } },
],

Headings​

{ title: { text: "Heading" } },

Images​

{ image: { src: "https://images.example.com"} },

Text​

{ p: { text: "Here is some supporting text" } },

Buttons​

{ button: { text: "Button", href: "https://example.com" } },

Anchor Tags​

{ a: { text: "Link", href: "https://example.com" } },

Group Elements​

Group elements are simply elements wrapped in {group: {}} within your elements array.

{ group: {
elements: [

// elements go here separated by commas

],
}
},

Nested Group Elements​

{ group: {
elements: [
{ group: {
elements: [

// elements go here separated by commas

],
}
},
],
}
},