{
  "$schema": "https://www.digitaltableteur.com/schemas/contract-spec/1.0/contract.schema.json",
  "specVersion": "1.0",
  "name": "Title",
  "status": "stable",
  "description": "Semantic heading (h1 to h6) with size and line-height variants; the heading level is independent of the visual size.",
  "package": {
    "name": "@digitaltableteur/react",
    "import": "import { Title } from \"@digitaltableteur/react\";"
  },
  "props": {
    "children": {
      "type": "React.ReactNode | ReactI18NextChildren | Iterable<ReactI18NextChildren>",
      "optional": false,
      "description": "Heading text."
    },
    "as": {
      "type": "union",
      "values": [
        "h1",
        "h2",
        "h3",
        "h4",
        "h5",
        "h6"
      ],
      "optional": true,
      "description": "Override the rendered element (h1-h6); wins over level."
    },
    "className": {
      "type": "string | undefined",
      "optional": true,
      "description": "Additional CSS class names."
    },
    "unstyled": {
      "type": "boolean",
      "optional": true,
      "description": "When true, only sets the heading tag + className (no Title token typography). Use in patterns/pages that already define font/size in CSS or Tailwind."
    },
    "size": {
      "type": "union",
      "values": [
        "xl",
        "xs",
        "s",
        "xxs",
        "m",
        "l",
        "xxl"
      ],
      "optional": true,
      "description": "Display size token for the heading."
    },
    "level": {
      "type": "1 | 2 | 3 | 4 | 5 | 6",
      "optional": true,
      "description": "Semantic heading level (maps to h1-h6 when as is unset)."
    },
    "lineHeight": {
      "type": "union",
      "values": [
        "normal",
        "tight",
        "snug",
        "relaxed",
        "loose"
      ],
      "optional": true,
      "description": "Line height variant."
    },
    "flush": {
      "type": "boolean",
      "optional": true,
      "description": "Drop the block margins. Use when the parent owns spacing: a row, a cell, a\ncard or a flex/grid gap."
    }
  },
  "accessibility": {
    "criteria": [
      {
        "id": "accessibility-tree",
        "statement": "The accessibility tree (role, name, state) matches the committed snapshot for every required story.",
        "verification": "automated",
        "wcag": [
          "1.3.1",
          "4.1.2"
        ],
        "check": "npm run test:stories:matrix:ci",
        "evidence": [
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-example.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:39:21.517Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-example.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:47.951Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-example.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:20:11.503Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-example.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:29:51.409Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-forced-colors.dark.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:39:21.548Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-forced-colors.forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:47:47.991Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-forced-colors.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:20:11.532Z",
            "passed": true,
            "runner": "local-recapture"
          },
          {
            "artifact": "../../../nextjs-app/shared/components/Title/__a11y-evidence__/content-title-forced-colors.light.json",
            "sourceCommit": "930c562b591b6d9967e1e8c214899052624d9a2f",
            "capturedAt": "2026-11-03T22:29:51.440Z",
            "passed": true,
            "runner": "local-recapture"
          }
        ]
      },
      {
        "id": "forced-colors-real-browser",
        "statement": "The component remains legible and operable under a real browser forced-colors: active pass.",
        "verification": "manual",
        "note": "Storybook forced-colors addon (simulated, not real browser HC).",
        "reviewedAt": "2026-11-04"
      },
      {
        "id": "aria-requirements",
        "statement": "Documented ARIA roles, states, and properties are present on the rendered output.",
        "verification": "unverified",
        "wcag": [
          "4.1.2"
        ],
        "note": "No exportable evidence record for this check; re-run the check to capture one."
      },
      {
        "id": "human-a11y-review",
        "statement": "A human completed an end-to-end accessibility review of this component.",
        "verification": "manual",
        "note": "2026-05-26 — heading level, contrast, forced-colors verified in Storybook.",
        "reviewedAt": "2026-11-04"
      }
    ]
  },
  "governance": {
    "owner": "design-system",
    "lastReviewed": "2026-11-04",
    "note": "Reviewed by Petri Lahdelma; prepared by Claude from a code review on 2026-11-03"
  },
  "source": [
    "../../../nextjs-app/shared/components/Title/Title.module.css",
    "../../../nextjs-app/shared/components/Title/Title.tsx"
  ]
}
