Data & Status
Collapsible File Tree
파일과 폴더를 선택하고 접을 수 있는 중첩 파일 트리입니다.
Preview
data structure
Collapsible File Tree
browse nested files
Installation
bash
Copied
bash
Copied
bash
Copied
bash
Copied
Code
typescript
Copied
Props
elements
- Type
- TreeViewElement[]
- Default
- undefined
- Description
- Tree data rendered recursively.
initialSelectedId
- Type
- string
- Default
- undefined
- Description
- Initially selected file or folder id.
initialExpandedItems
- Type
- string[]
- Default
- undefined
- Description
- Folder ids opened on first render.
indicator
- Type
- boolean
- Default
- true
- Description
- Whether to show nesting guide lines.
openIcon
- Type
- React.ReactNode
- Default
- FolderOpenIcon
- Description
- Icon for expanded folders.
closeIcon
- Type
- React.ReactNode
- Default
- FolderIcon
- Description
- Icon for collapsed folders.
sort
- Type
- TreeSortMode
- Default
- "default"
- Description
- Folder/file sorting behavior.