{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "markdown-table-vue",
  "title": "Markdown Table (Vue)",
  "description": "A table that scrolls sideways, with a copy button.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/vue@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup",
    "@kind-ui/internal-scroll-area-vue"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/vue/markdown-table.ts",
      "content": "import { markdownTablePrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/vue/primitive\";\nimport { defineComponent, h } from \"vue\";\nimport {\n  KindScrollArea,\n  KindScrollAreaContent,\n  KindScrollAreaScrollbar,\n  KindScrollAreaThumb,\n  KindScrollAreaViewport,\n} from \"./internal/scroll-area\";\n\nconst parts = createParts(markdownTablePrimitive, {\n  root: \"div\",\n  header: \"div\",\n  copy: \"button\",\n  table: \"table\",\n});\n\n/**\n * A table with a copy button; its default slot holds the `thead` and `tbody`. Name it with `aria-label`. Set\n * `--kind-markdown-table-columns` to the column count so it scrolls sideways rather than squeezing its columns.\n */\nexport const MarkdownTable = defineComponent({\n  name: \"MarkdownTable\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Root, attrs, {\n        ...slots,\n        default: () => [\n          h(parts.Header, null, () => h(parts.Copy)),\n          h(KindScrollArea, null, () => [\n            h(KindScrollAreaViewport, null, () =>\n              h(KindScrollAreaContent, null, () => h(parts.Table, null, () => slots.default?.())),\n            ),\n            h(KindScrollAreaScrollbar, { orientation: \"horizontal\" }, () => h(KindScrollAreaThumb)),\n          ]),\n        ],\n      });\n  },\n});\n",
      "type": "registry:ui",
      "target": "@ui/vue/markdown-table.ts"
    }
  ],
  "meta": {
    "layer": "vue"
  },
  "type": "registry:ui"
}
