---
title: H2
description: JSON Schema for the H2 component.
---

Section heading (h2).

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "H2",
      "default": "H2",
      "type": "string"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "HTML id attribute for CSS targeting. Applied to the outermost element."
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "content": {
      "description": "Text content",
      "type": "string"
    },
    "bold": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "italic": {
      "type": [
        "boolean",
        "null"
      ],
      "default": null
    },
    "align": {
      "enum": [
        "left",
        "center",
        "right",
        "justify"
      ],
      "type": [
        "string",
        "null"
      ],
      "default": null
    }
  },
  "required": [
    "type",
    "content"
  ]
}
```
