Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 993 Bytes

property-label.md

File metadata and controls

34 lines (29 loc) · 993 Bytes

Property label

The label property is used inside follow blocks or share blocks and should hold the text that is displayed above your follow or share buttons.

Example usage

The following input JSON shows how to show a label in a follow block. This is the basic usage, showing a follow button.

{
    "from" : "info@example.com",
    "subject" : "Email with a follow block",
    "content" : {
        "blocks" : [ {
            "type"      : "follow",
            "label"     : "Follow us!",
            "align"     : "left",
            "icon"      : {
                "type"      : "rounded",
                "size"      : 32
            },
            "platforms" : {
                "twitter" : "https://twitter.com/copernica"
            }
        } ]
    }
}

For more information and more examples, please check the documentation of follow blocks or share blocks.