Skip to main content
Code block with optional syntax highlighting.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Code",
      "default": "Code",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "content": {
      "description": "Code content",
      "type": "string"
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Syntax highlighting language"
    }
  },
  "required": [
    "type",
    "content"
  ]
}