Spacer

    This is an invisible component that places a fixed-size space at the beginning or end of the box.

    Note

    • The spacer will be removed in a future release. We recommend setting the padding of the box without using a spacer. For more information, see Box padding in "How to Place Components and Adjust Child Components."

    API Type

    Server API

    Request URL

    https://apis.worksmobile.com/r/{API ID}/message/v1/bot/{botNo}/message/push

    HTTP Method

    POST(Content-Type: application/json; charset=UTF-8)

    Request

    Parameter Type Required Description
    type string Y Set this parameter to spacer.
    size string Y Size of the space. You can specify one of the following values: xs, sm, md, lg, xl, or xxl.
    The size increases in the order of listing.

    The default value is md.

    ※ The spacing property of the parent element will be ignored for spacers.

    Request Example

    
    {
      "type": "bubble",
      "body": {
        "type": "box",
        "layout": "vertical",
        "contents": [
          {
            "type": "image",
            "url": "https://i.ibb.co/nmKJ6Bg/WORKSMOBILE02.png",
            "size": "full",
            "aspectMode": "cover"
          },
          {
            "type": "spacer",
            "size": "xxl"
          }
        ],
        "paddingAll": "10px",
        "paddingBottom": "0px"
      },
      "footer": {
        "type": "box",
        "layout": "vertical",
        "contents": [
          {
            "type": "button",
            "action": {
              "type": "uri",
              "label": "See more",
              "uri": "http://worksmobile.com"
            },
            "style": "primary",
            "color": "#909090",
            "height": "sm"
          }
        ]
      }
    }