Link block

A block with the type link represents a single link.

In this block you can set label, title and link properties.

Property Value Desc.
type "link" Identifies the block as a link block
label string The link text of the link
link object Same as url except that the link property accepts another JSON block with extra options: title, params.
font object Font properties for the hyperlink
margin mixed Whitespace around the block
padding mixed Whitespace around the block, this whitespace will have a background
background object The background of the block.
align string The alignment of the link.
css object Add custom css to the link
attributes object Add custom HTML attributes to the link
rewrite object Rewrite rules for the link
container object Get access to the table cell in which this block is wrapped

Example

The following fragment of JSON would render into a fully functional hyperlink

{
    "from" : "info@example.com",
    "subject" : "Email with a single link",
    "content" : {
        "blocks" : [ {
            "type" : "link",
            "label" : "Responsive email",
            "link" : {
                "label" : "Responsive email",
                "url" : "https://responsiveemail.com"
            }
        } ]
    }
}

An important remark: instead of adding a link property, the system is able to interpret correctly a string containing the url.

Found a typo?

You can find this documentation page on GitHub.
Propose a change