{
  "id": "comments-thread",
  "name": "CommentsThread",
  "level": "organism",
  "status": "experimental",
  "purpose": "A discussion: comments, replies to them and a box to add yours.",
  "description": "Threaded discussion with role=tree, aria-level per node and a depth-indexed indentation rail. Pure presentation: consumers own the comments tree and click handlers; the organism owns the a11y contract. Use mode=flat to suppress visual indentation while preserving semantic hierarchy.",
  "role": "content",
  "import": "@rrios-forge/ui/organisms/comments-thread",
  "exports": [
    "CommentsThread",
    "COMMENTS_THREAD_DENSITIES",
    "COMMENTS_THREAD_MODES",
    "COMMENTS_THREAD_SORTS",
    "commentsThreadVariants"
  ],
  "source": "packages/ui/src/organisms/comments-thread",
  "axes": [
    {
      "axis": "mode",
      "part": null,
      "values": [
        "tree",
        "flat"
      ],
      "default": null,
      "meaning": null
    },
    {
      "axis": "density",
      "part": null,
      "values": [
        "comfortable",
        "compact"
      ],
      "default": null,
      "meaning": null
    },
    {
      "axis": "sort",
      "part": null,
      "values": [
        "recent",
        "top",
        "controversial"
      ],
      "default": null,
      "meaning": null
    }
  ],
  "needs": [
    {
      "need": "Threaded comments",
      "answer": "`CommentsThread`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [],
  "stories": [
    {
      "name": "Tree",
      "id": "components-organisms-commentsthread--tree",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-commentsthread--tree",
      "frame": "/iframe.html?id=components-organisms-commentsthread--tree&viewMode=story"
    },
    {
      "name": "Flat",
      "id": "components-organisms-commentsthread--flat",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-commentsthread--flat",
      "frame": "/iframe.html?id=components-organisms-commentsthread--flat&viewMode=story"
    },
    {
      "name": "Max depth (continue thread)",
      "id": "components-organisms-commentsthread--max-depth",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-commentsthread--max-depth",
      "frame": "/iframe.html?id=components-organisms-commentsthread--max-depth&viewMode=story"
    },
    {
      "name": "Empty",
      "id": "components-organisms-commentsthread--empty",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-commentsthread--empty",
      "frame": "/iframe.html?id=components-organisms-commentsthread--empty&viewMode=story"
    },
    {
      "name": "Compact",
      "id": "components-organisms-commentsthread--compact",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-organisms-commentsthread--compact",
      "frame": "/iframe.html?id=components-organisms-commentsthread--compact&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/organisms/comments-thread.stories.tsx"
}
