Separator

구분선(separator)은 박스 컴포넌트 내에서 구분선을 표시하는 컴포넌트이다.

수평 박스(horizontal box)에서는 수직선으로 표시되며, 수직 박스(vertical box)에서는 수평선으로 표시된다.

Request {#separator-request-parameter}

파라미터타입필수 여부설명
typestringYseparator 로 고정.
marginstringN상위 컴포넌트 내 해당 컴포넌트와 이전 컴포넌트와의 최소 간격. 자세한 내용은 컴포넌트의 margin 속성을 참고한다.
colorstringN구분선의 색상. Hex 색상 코드로 지정한다.

Request Example {#separator-request-example}

{  "type": "bubble",  "body": {    "type": "box",    "layout": "vertical",    "spacing": "md",    "contents": [      {        "type": "box",        "layout": "horizontal",        "spacing": "md",        "contents": [          {            "type": "text",            "text": "message"          },          {            "type": "text",            "text": "calendar"          }        ]      },      {        "type": "separator"      },      {        "type": "box",        "layout": "horizontal",        "spacing": "md",        "contents": [          {            "type": "text",            "text": "bot"          },          {            "type": "text",            "text": "home"          }        ]      }    ]  }}