Property color

The color property is a simple property inside button blocks used to set the color of the button. You can assign color names, as well as hexadecimal color values.

Example use

    {   
        "from" : "info@example.com",
        "subject" : "Email with a single button",
        "content" : {
            "blocks" : [ {
                "type" : "button",
                "label" : "Button",
                "color" : "red",
                "link" : "http://www.example.com"
            } ]
        }
    }

Found a typo?

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