# Relevant Cardscript iconSeparator

Cardscript

Displays a horizontal line.

# Example

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "Separator"
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# type

Must be "Separator".

  • Type: string
  • Values:
    • Separator

# Optional properties

# id

A unique identifier associated with the element.

  • Type: string

# spacing

Controls the amount of spacing between this element and the preceding element.

  • Type: string
  • Values:
    • none
    • small
    • default
    • medium
    • large
    • extraLarge
    • padding

# separator

When true, draw a separating line at the top of the element.

  • Type: boolean

# JSON Schema

{
  "additionalProperties": true,
  "type": "Separator",
  "description": "Displays a horizontal line.",
  "version": "1.1",
  "allOf": [
    {
      "$ref": "#/definitions/CardElement"
    }
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "Must be `\"Separator\"`.",
      "enum": [
        "Separator"
      ]
    }
  },
  "required": [
    "type"
  ],
  "typeSafe": "separator",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"Separator\"`."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM