Property size

The size property is a simple property inside button blocks used to set the size of the button. This works just like the padding and margin blocks. As in you can specify the top, bottom, left and right size.

Example use

{
    "from" : "info@example.com",
    "subject" : "Email with a single button",
    "content" : {
        "blocks" : [ {
            "type" : "button",
            "label" : "Button",
            "size" : {
                "top": 5,
                "bottom": 15,
                "right": 10,
                "left": 10
            },
            "link" : "http://www.example.com"
        } ]
    }
}

Found a typo?

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