{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The list of a file tree. Put FileTreeItem in it. Arrow keys and type-ahead: attach `moveFocus` and `typeahead` from the utils to the keydown (vertical, no loop).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/patterns/file-tree.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// FileTreeProps are the props of FileTree; the values are the JSON shapes of the TypeScript props.\ntype FileTreeProps struct {\n\tLabel any `json:\"label\"`\n\tClass string `json:\"className\"`\n}\n\n// The list of a file tree. Put FileTreeItem in it. Arrow keys and type-ahead: attach `moveFocus` and `typeahead` from the utils to the keydown (vertical, no loop).\ntempl FileTree(p FileTreeProps) {\n\t{{ vLabel := p.Label }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex flex-col gap-2 p-2\", p.Class)), Attrs: uiutils.Attrs(\"role\", \"tree\", \"aria-label\", vLabel, \"data-slot\", \"file-tree\")}}) {\n\t\t{ children... }\n\t}\n}\n",
      "path": "blocks/file-tree.templ",
      "target": "blocks/file-tree.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "file-tree",
  "registryDependencies": [
    "box",
    "kit-box",
    "utils"
  ],
  "runtime": "templ",
  "title": "File Tree",
  "type": "registry:component"
}
