{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://next.mdxui.dev/schema/sections/hero.json",
  "title": "hero",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "hero"
    },
    "layout": {
      "type": "string",
      "enum": [
        "centered",
        "split"
      ]
    },
    "stack": {
      "anyOf": [
        {
          "type": "number",
          "const": 560
        },
        {
          "type": "number",
          "const": 640
        }
      ]
    },
    "kicker": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "eyebrow"
        },
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        }
      },
      "required": [
        "kind",
        "text"
      ],
      "additionalProperties": false
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "lede": {
      "type": "string",
      "minLength": 1,
      "maxLength": 260
    },
    "actions": {
      "maxItems": 2,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 24
          },
          "kind": {
            "type": "string",
            "enum": [
              "solid",
              "ghost"
            ]
          },
          "icon": {
            "type": "string",
            "enum": [
              "activity",
              "anchor",
              "arrow-right",
              "arrow-up-right",
              "badge-check",
              "bell",
              "blocks",
              "bot",
              "check",
              "chevron-down",
              "chevron-left",
              "chevron-right",
              "clock",
              "code",
              "compass",
              "copy",
              "credit-card",
              "database",
              "file-code-2",
              "file-text",
              "files",
              "film",
              "fingerprint",
              "gauge",
              "git-commit-horizontal",
              "globe",
              "history",
              "key-round",
              "landmark",
              "layers",
              "layout-grid",
              "library",
              "link",
              "list",
              "map-pin",
              "menu",
              "message-square",
              "mic",
              "plug",
              "radar",
              "refresh-cw",
              "search",
              "shield-check",
              "ship",
              "shopping-cart",
              "sliders-horizontal",
              "sparkles",
              "terminal",
              "ticket",
              "waves",
              "webhook",
              "x"
            ]
          },
          "external": {
            "type": "boolean"
          }
        },
        "required": [
          "href",
          "label",
          "kind"
        ],
        "additionalProperties": false
      }
    },
    "command": {
      "type": "object",
      "properties": {
        "command": {
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "maxLength": 48
        }
      },
      "required": [
        "command"
      ],
      "additionalProperties": false
    },
    "fine": {
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 72
      }
    },
    "specimen": {
      "type": "object",
      "properties": {
        "panel": {
          "type": "string",
          "enum": [
            "none",
            "field"
          ]
        },
        "blocks": {
          "minItems": 1,
          "maxItems": 3,
          "type": "array",
          "items": {
            "$ref": "#"
          }
        }
      },
      "required": [
        "blocks"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "layout",
    "stack",
    "title",
    "lede",
    "actions",
    "fine"
  ],
  "additionalProperties": false
}
