https://github.com/postor/react-folder-tree
yet another folder tree component for react | 又一个文件夹结构组件
https://github.com/postor/react-folder-tree
Last synced: 10 months ago
JSON representation
yet another folder tree component for react | 又一个文件夹结构组件
- Host: GitHub
- URL: https://github.com/postor/react-folder-tree
- Owner: postor
- License: mit
- Created: 2022-05-13T09:44:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-18T07:50:51.000Z (over 3 years ago)
- Last Synced: 2025-03-18T13:59:37.238Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-folder-tree
yet another folder tree component for react | 又一个文件夹结构组件
- 0 dependency | 无依赖
- lazy loaded | 懒加载
- simple api | 接口简单
- fully customizable UI | 可定制 UI

https://codesandbox.io/s/postor-react-folder-tree-by5stv?file=/src/App.tsx
## useage
```
import {FolderTree,DefaultTemplate} from "@postor/react-folder-tree"
await fetch(base) /* your function to fetch */}
rootName="root"
/>
```
## customize UI
create your template based on [`DefaultTemplate`](./src/DefaultTemplate.tsx) and then
基于 [`DefaultTemplate`](./src/DefaultTemplate.tsx) 创建你自己的 UI 模板,然后
```