Skip to content
Entangle UI v0.13.0

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.

optional children?: FileTreeNode[]

Defined in: src/components/controls/FileTree/FileTree.types.ts:34

Child entries. Present on folders; ignored on files.


optional data?: Record<string, unknown>

Defined in: src/components/controls/FileTree/FileTree.types.ts:38

Arbitrary consumer payload (size, modified date, GUID, …).


optional disabled?: boolean

Defined in: src/components/controls/FileTree/FileTree.types.ts:36

Dim + non-interactive.


optional ext?: 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: string

Defined in: src/components/controls/FileTree/FileTree.types.ts:21

Stable unique id within the tree.


kind: FileTreeNodeKind

Defined in: src/components/controls/FileTree/FileTree.types.ts:25

File vs. folder. Folders accept dropped files; files do not.


name: string

Defined in: src/components/controls/FileTree/FileTree.types.ts:23

Display name, e.g. "Button.tsx" or "components".


optional path?: string

Defined in: src/components/controls/FileTree/FileTree.types.ts:32

Optional path (informational; surfaced unchanged to consumers).