Code

FileTree

Tree view for displaying hierarchical file and folder structures with expand/collapse and selection.

Button.tsx
Card.tsx
Dialog.tsx
index.ts
utils.ts
package.json
tsconfig.json

Props

PropTypeDefaultDescription
expandedSet<string>-Controlled set of expanded folder paths
defaultExpandedSet<string>new Set()Initial expanded folder paths
selectedPathstring-Currently selected file/folder path
onSelect(path: string) => void-Callback when a path is selected
onExpandedChange(expanded: Set<string>) => void-Callback when expanded paths change

Import

import { FileTree, FileTreeIcon } from '@blastx/ui-ai';