# FileTree

可折叠的目录树，使用嵌套 Markdown 列表编写——支持文件夹、文件、高亮和占位行。

**Install:** `nimbus-docs add file-tree`  
**Source:** `src/components/ui/file-tree/`  
**Canonical:** https://nimbus-docs.cn/components/file-tree/

## Agent payload (JSON)

```json
{
  "slug": "file-tree",
  "name": "FileTree",
  "description": "Render a directory tree as nested markup.",
  "tagline": "可折叠的目录树，使用嵌套 Markdown 列表编写——支持文件夹、文件、高亮和占位行。",
  "install": "nimbus-docs add file-tree",
  "sourcePath": "src/components/ui/file-tree/",
  "canonicalUrl": "https://nimbus-docs.cn/components/file-tree/",
  "props": [],
  "registryDependencies": [
    "cn"
  ],
  "dependencies": []
}
```
