{
  "$schema": "https://www.digitaltableteur.com/schemas/contract-spec/1.0/contract.schema.json",
  "specVersion": "1.0",
  "name": "SectionTitle",
  "status": "alpha",
  "description": "The shared section title: a pixel mark that opens at the middle of the viewport, then the heading, left-aligned at one type size per breakpoint.",
  "props": {
    "children": {
      "type": "ReactNode",
      "optional": false,
      "description": "The title text."
    },
    "id": {
      "type": "string",
      "optional": true,
      "description": "Id on the heading, for aria-labelledby on its section."
    },
    "level": {
      "type": "union",
      "values": [
        "2",
        "3"
      ],
      "optional": true,
      "description": "Heading level."
    },
    "mark": {
      "type": "boolean",
      "optional": true,
      "description": "The pixel mark before the title. Turn it off over artwork, where the dots would not read."
    },
    "className": {
      "type": "string",
      "optional": true,
      "description": "Classes on the row holding the mark and the title."
    },
    "titleClassName": {
      "type": "string",
      "optional": true,
      "description": "Classes on the heading itself."
    }
  },
  "accessibility": {
    "criteria": [
      {
        "id": "axe-no-violations",
        "statement": "Required stories produce no axe violations at the configured severity.",
        "verification": "unverified",
        "wcag": [
          "2.5.8"
        ],
        "note": "No fresh a11y evidence for 'axe-no-violations'; run npm run test:stories:matrix:ci to capture."
      },
      {
        "id": "accessibility-tree",
        "statement": "The accessibility tree (role, name, state) matches the committed snapshot for every required story.",
        "verification": "unverified",
        "wcag": [
          "1.3.1",
          "4.1.2"
        ],
        "note": "No fresh a11y evidence for 'accessibility-tree'; run npm run test:stories:matrix:ci to capture."
      },
      {
        "id": "forced-colors-real-browser",
        "statement": "The component remains legible and operable under a real browser forced-colors: active pass.",
        "verification": "unverified"
      }
    ]
  },
  "source": [
    "../../../nextjs-app/shared/patterns/SectionTitle/SectionTitle.module.css",
    "../../../nextjs-app/shared/patterns/SectionTitle/SectionTitle.tsx"
  ]
}
