Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (30 sloc) 1.17 KB

Container blocks

Container blocks are - you might have guessed it - a block that contains other blocks. The blocks inside the container block are displayed below eachother in a vertical fashion. It is thus best compared to a columns block with only a single column.

{
    "from" : "info@example.com",
    "subject" : "Email with a container block",
    "content" : {
        "blocks" : [ {
            "type" : "container",
            "blocks" : [{
                "type": "heading",
                "content": "First block inside the container"
            },{
                "type": "text",
                "content": "And this is the second"
            }]
        } ]
    }
}

Inside the block you can use sub properties. The following tables lists all supported properties.

Container block properties

Property Value Description
type "container" Identifies the block as a container block.
blocks array An array with objects, each one representing any other block type, such as button blocks and text blocks.
You can’t perform that action at this time.