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
| Prop | Type | Default | Description |
|---|---|---|---|
| expanded | Set<string> | - | Controlled set of expanded folder paths |
| defaultExpanded | Set<string> | new Set() | Initial expanded folder paths |
| selectedPath | string | - | 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';