{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://schema.mydesignsystem.com/headline.schema.json",
  "title": "Headline",
  "description": "Component used for headlines",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "title": "Text",
      "description": "Text content of headline",
      "format": "markdown"
    },
    "sub": {
      "type": "string",
      "title": "Sub",
      "description": "Subheadline content",
      "format": "markdown"
    },
    "switchOrder": {
      "type": "boolean",
      "title": "Switch order?",
      "description": "Switch order of headline and subheadline",
      "default": false
    },
    "align": {
      "type": "string",
      "title": "Section alignment",
      "enum": ["left", "center", "right"]
    },
    "level": {
      "type": "string",
      "title": "Level",
      "description": "Level of headline to use",
      "enum": ["h1", "h2", "h3", "h4", "p"],
      "default": "h2"
    },
    "style": {
      "type": "string",
      "title": "Style",
      "description": "Style of headline to show",
      "enum": ["h1", "h2", "h3", "h4", "p"],
      "default": "h2"
    },
    "spaceAfter": {
      "type": "string",
      "title": "Space after?",
      "description": "Whether to display space after headline",
      "enum": ["minimum", "small", "large"],
      "default": "small"
    },
    "className": {
      "type": "string",
      "title": "Class Name",
      "description": "Set a custom class name"
    },
    "id": {
      "type": "string",
      "title": "ID",
      "description": "Set a custom id attribute"
    }
  },
  "additionalProperties": false,
  "required": ["level", "text"]
}
