FileTreeNode
Defined in: src/components/controls/FileTree/FileTree.types.ts:19
A single file or folder in the tree. The file-system-flavored counterpart of
TreeView’s TreeNodeData: name instead of label, an explicit kind, and
an optional ext that drives the auto-assigned file-type icon.
Properties
children?
optionalchildren:FileTreeNode[]
Defined in: src/components/controls/FileTree/FileTree.types.ts:34
Child entries. Present on folders; ignored on files.
data?
optionaldata:Record<string,unknown>
Defined in: src/components/controls/FileTree/FileTree.types.ts:38
Arbitrary consumer payload (size, modified date, GUID, …).
disabled?
optionaldisabled:boolean
Defined in: src/components/controls/FileTree/FileTree.types.ts:36
Dim + non-interactive.
ext?
optionalext:string
Defined in: src/components/controls/FileTree/FileTree.types.ts:30
Extension override without the leading dot (e.g. "tsx"). Inferred from
name when omitted. Drives the built-in file-type icon.
id
id:
string
Defined in: src/components/controls/FileTree/FileTree.types.ts:21
Stable unique id within the tree.
kind
kind:
FileTreeNodeKind
Defined in: src/components/controls/FileTree/FileTree.types.ts:25
File vs. folder. Folders accept dropped files; files do not.
name
name:
string
Defined in: src/components/controls/FileTree/FileTree.types.ts:23
Display name, e.g. "Button.tsx" or "components".
path?
optionalpath:string
Defined in: src/components/controls/FileTree/FileTree.types.ts:32
Optional path (informational; surfaced unchanged to consumers).