Your next page is taking shape...

Opening Your Next Page…

Loading the guide and preparing its examples for you to explore. The page will appear here automatically when it’s ready, so you can keep this view open without refreshing.

Made for Preact. Built to be yours.

Navigation & Disclosure

Tree

Accessible hierarchical tree view with composable items, controlled expansion/selection, keyboard navigation, and height-based expand animation. Organize content into understandable destinations and reveal detail when it becomes relevant. Keep the active location or expanded state easy to recognize. Import it from @/components/kamod-ui/tree.

Source · Design reference · API reference · Theming · Styles


Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Installation

Import TreeProvider, Tree, and TreeItem from @kamod-ch/ui/tree.

Install PackagesTerminal
pnpm add @kamod-ch/ui

Copy an example with @kamod-ch/ui or the matching @kamod-ch/ui/… subpath. The code block switches between those two installs. Connect The Global Theme CSS and Tailwind Source Detection before your first render.

Import SetupTypeScript
import { Tree, TreeItem, TreeProvider } from "@kamod-ch/ui";

Usage

Wrap Tree in TreeProvider. Nest TreeItem children for branches. Provide aria-label or aria-labelledby on Tree.

Import SetupTypeScript
import { Tree } from "@kamod-ch/ui";

Choose a complete composition from the examples below; required child components and props vary by pattern.

Usage PatternTypeScript
<TreeProvider defaultExpandedIds={["documents"]}>
  <Tree aria-label="Files">
    <TreeItem nodeId="documents" label="Documents">
      <TreeItem nodeId="readme" label="README.md" />
    </TreeItem>
  </Tree>
</TreeProvider>

Component Examples & Variants

Explore Tree in Different Contexts, from the starting pattern to the compositions below. Begin with Basic File Tree, then compare the examples that match your content, state and layout. These are working patterns to adapt, not a list of interchangeable variant values: check the API Reference before using a prop or combining behaviors. Look at the surrounding labels, supporting text and spacing as well as the component itself.

Read the Result and Its Implementation Together. Use each showcase’s Code view to inspect imports and composition, or its Prompt view to prepare a setup or adaptation brief. Try the narrow preview and local theme controls before connecting real data, and use Reset to return an example to its initial state. Keep layout changes in class utilities where appropriate; follow the Component Styles Guide for hierarchy and the Theming Guide for shared surfaces and colors. The Accessibility Notes explain what to preserve when making those changes.

Basic File Tree

Use Stable Identities for the Hierarchy. Start with a small nested tree whose Documents branch is open initially. Stable node identifiers connect each item to its expansion and selection state, while the nesting describes which files belong to each folder.

Distinguish opening a branch from activating a leaf, and keep names useful without relying on file icons alone.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Default Expanded

Choose an Initial View that Provides Orientation. Supply defaultExpandedIds with the branch identifiers that should be visible on the first render. This establishes the initial reading context without requiring the parent to manage every later expansion change.

Treat defaultExpandedIds as an initial state choice, use IDs present in the data and compare Controlled Expansion when another control must change visibility later.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Controlled Expansion

Coordinate Open Branches from One State Owner. Pass expandedIds from Preact state and handle onExpandedChange when other controls need to open or close branches. Keeping the expanded collection in one place lets the tree and those external actions stay synchronized.

Update the same collection through onExpandedChange, discard obsolete IDs when the data changes and avoid resetting the user's open branches on every unrelated render.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Single Selection

Keep the Selected Node Distinct from Focus. Set selectionMode="single" when the tree identifies one current item, optionally starting with defaultSelectedIds. Selection communicates the chosen node, while expansion remains a separate question of which descendants are visible.

Use stable IDs and decide what selecting a branch means in the surrounding workflow.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Multiple Selection

Make the Selected Set and Its Scope Clear. Set selectionMode="multiple" when a task operates on several nodes at once. Ctrl/Cmd-click and Ctrl/Cmd-Space toggle membership in the selection, giving pointer and keyboard users access to the same collection of choices.

Keep the collection synchronized with the current data, provide a readable selection summary and test modifier-key behavior alongside ordinary single-item activation.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Without Icons and Lines

Let Indentation and Labels Carry the Structure. Turn off connector lines and icon slots when a compact hierarchy can be understood from labels and indentation alone. The quieter presentation should still preserve clear expansion controls and a recognizable selected item.

Open a deeply nested branch and compare it with its siblings to confirm that the remaining indentation is sufficient. Keep a useful label visible after truncation, particularly when several folders share the same beginning.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Variants and Sizes

Apply Density Consistently Across the Hierarchy. Set variant and size on TreeProvider to coordinate the treatment across every node. This gives the hierarchy one consistent density while allowing individual labels and state indicators to communicate their local meaning.

Check long labels, focus rings and action slots at each size, and avoid shrinking a dense tree until its expansion controls become difficult to activate.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Disabled Items

Explain Unavailable Nodes without Breaking the Hierarchy. Mark unavailable nodes as disabled so they cannot be selected and are skipped during keyboard navigation. Keep their labels understandable within the hierarchy, especially when the disabled node explains a missing or restricted resource.

Keep the current selection valid when permissions change and verify keyboard travel past disabled entries.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Deep Structure and Long Labels

Keep Long Paths Navigable without Widening the Page. Nest nodes to describe deeper levels and let the tree derive their level information. Labels use start alignment and truncation, so test long folder names alongside the indentation rather than assuming every depth has equal space.

Provide a way to inspect truncated names where necessary, and consider whether several levels belong in a separate detail view rather than one indefinitely indented list.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Advanced Compound API

Customize the Row While Preserving the Tree Contract. Compose TreeNode, TreeNodeTrigger, TreeExpander, TreeIcon, TreeLabel and TreeNodeContent when a row needs a custom layout. This can coexist with TreeItem, allowing simpler branches to retain the convenient composition.

Keep node identities and semantic relationships intact, and test keyboard behavior after adding actions or moving slots; visual freedom should not create competing nested triggers.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Custom Icons

Choose Symbols that Explain Node Kinds. Pass an exported Kamod icon or a custom Preact SVG to represent each node. TreeIcon can also render from TreeIconState, letting the symbol reflect the item's state without introducing a second selection model.

Use the render state when appearance depends on expansion or selection, and keep the icon implementation lightweight rather than introducing another component framework.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

State-Specific Icons

Use State Changes to Reinforce Existing Cues. Use state-specific icons when disabled, selected or expanded nodes need a distinct visual cue. The priority is disabledIcon, selectedIcon, expandedIcon, the node's own icon, then the provider default, so overlapping states resolve predictably.

Review the documented priority when combining overrides and keep disabled nodes understandable even when their normal symbol is replaced.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Provider Default Icons

Set a Coherent Baseline before Overriding Individual Nodes. Set branch, branchExpanded and leaf icons on TreeProvider for consistent defaults across the hierarchy. Individual node icons can override those defaults when a particular file or folder needs a more specific representation.

Reserve per-node icons for meaningful differences, and check the expanded branch symbol alongside the collapsed one so their relationship remains recognizable.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

TreeNodeActions

Keep Row Actions Separate from Navigation. Place row-specific badges or buttons inside TreeNodeActions to separate them from the node's selection target. Its event isolation prevents an action from also expanding or selecting the row simply because it is positioned inside it.

Give each action a useful accessible name, preserve the event isolation supplied by the slot and test keyboard access as well as clicking on the icon.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Custom Preact SVG Icon

Keep Custom Graphics Compatible with the Existing Renderer. Use a Preact SVG component as a tree icon when your project has its own visual language. The icon slot accepts that component without requiring the tree primitive to depend on the same icon package as the application.

Forward the sizing and styling attributes it needs, and treat the graphic as decorative when the node label already supplies its meaning.

Interactive Live Preview
Try it. Make it yours.
Setting the scene...

Interactive preview

Live Preact example Local preview theme · Responsive styles follow the preview widthFull width

Keyboard

Verify the Hierarchy without a Pointer. Use arrow keys to move through visible nodes, Home/End to reach the boundaries and Enter/Space to activate the focused node. In multiple-selection mode, Ctrl/Cmd+A selects visible items, so collapsed descendants are a distinct case to test.

Exercise an expanded branch, a collapsed branch and a disabled node before integrating custom row actions. Verify that focus remains on an understandable item after changes to the tree and that an action button does not also toggle its parent node.

Accessibility

Tree uses tree/treeitem/group roles, hierarchical levels, expanded state and optional selection state. It requires an accessible name and warns during development when one is missing. Selection mode and expansion are separate concerns.

API reference

Props and Data

Configure Tree using the contracts below. Read the documented options alongside the Source Definitions to understand which values your application supplies and which details the component owns. Start with a prop or helper, then follow its type link to inspect the declaration without leaving the page.

Props overview.

API reference
Your API, from source

Type cards are extracted from this checkout’s TypeScript source at build time. Props inherited through HTMLAttributes, Omit or variant helpers remain references in those declarations; their fields are not flattened here. Match the reference to your installed version, and check a package’s exports before writing an import type. A type exported by a source file is not necessarily re-exported by @kamod-ch/ui.

Component Props

Read each option with its owning component. The
marker identifies required fields verified in that declaration. A ? means a field can be omitted; it does not promise a fallback value. Existing documented defaults remain alongside the descriptions. For callbacks, check the argument and return types before connecting your own state or services.
@kamod-ch/ui/tree36.0 KB min · 7.9 KB gzipSignals: direct@preact/signals

Tree

TreeProps

Tree documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeProps

Configure children for Tree. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeProps

Configure class for Tree. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeExpander

TreeExpanderProps

TreeExpander documented props
Prop / typeDescription
class
stringTreeExpanderProps

Configure class for TreeExpander. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeIcon

TreeIconProps

TreeIcon documented props
Prop / typeDescription
class
stringTreeIconProps

Configure class for TreeIcon. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
disabledIcon
ComponentChild[] | ComponentChildTreeIconProps

Configure disabledIcon for TreeIcon. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
expandedIcon
ComponentChild[] | ComponentChildTreeIconProps

Configure expandedIcon for TreeIcon. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
icon
ComponentChildren | TreeIconRenderTreeIconProps

Configure icon for TreeIcon. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
selectedIcon
ComponentChild[] | ComponentChildTreeIconProps

Configure selectedIcon for TreeIcon. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeItem

TreeItemProps

TreeItem documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeItemProps

Configure children for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeItemProps

Configure class for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
data
unknownTreeItemProps

Configure data for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
disabled
booleanTreeItemProps

Configure disabled for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
disabledIcon
ComponentChild[] | ComponentChildTreeItemProps

Configure disabledIcon for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
endContent
ComponentChild[] | ComponentChildTreeItemProps

Configure endContent for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
expandedIcon
ComponentChild[] | ComponentChildTreeItemProps

Configure expandedIcon for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
icon
ComponentChildren | TreeIconRenderTreeItemProps

Configure icon for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
label
ComponentChild[] | ComponentChildTreeItemProps

Configure label for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
nodeId
stringTreeItemProps

Configure nodeId for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
selectedIcon
ComponentChild[] | ComponentChildTreeItemProps

Configure selectedIcon for TreeItem. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeLabel

TreeLabelProps

TreeLabel documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeLabelProps

Configure children for TreeLabel. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeLabelProps

Configure class for TreeLabel. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeLines

TreeLinesProps

TreeLines documented props
Prop / typeDescription
class
stringTreeLinesProps

Configure class for TreeLines. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
indent
string | numberTreeLinesProps

Configure indent for TreeLines. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
isLast
booleanTreeLinesProps

Configure isLast for TreeLines. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
level
numberTreeLinesProps

Configure level for TreeLines. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
parentPath
boolean[]TreeLinesProps

Configure parentPath for TreeLines. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeNode

TreeNodeProps

TreeNode documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeNodeProps

Configure children for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
data
unknownTreeNodeProps

Configure data for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
disabled
booleanTreeNodeProps

Configure disabled for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
false
disabledIcon
ComponentChild[] | ComponentChildTreeNodeProps

Configure disabledIcon for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
expandedIcon
ComponentChild[] | ComponentChildTreeNodeProps

Configure expandedIcon for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
icon
ComponentChildren | TreeIconRenderTreeNodeProps

Configure icon for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
nodeId
stringTreeNodeProps

Configure nodeId for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
selectedIcon
ComponentChild[] | ComponentChildTreeNodeProps

Configure selectedIcon for TreeNode. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeNodeActions

TreeNodeActionsProps

TreeNodeActions documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeNodeActionsProps

Configure children for TreeNodeActions. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeNodeActionsProps

Configure class for TreeNodeActions. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
onClick
MouseEventHandler<HTMLSpanElement>TreeNodeActionsProps

Configure onClick for TreeNodeActions. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
onKeyDown
KeyboardEventHandler<HTMLSpanElement>TreeNodeActionsProps

Configure onKeyDown for TreeNodeActions. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeNodeContent

TreeNodeContentProps

TreeNodeContent documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeNodeContentProps

Configure children for TreeNodeContent. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeNodeContentProps

Configure class for TreeNodeContent. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeNodeTrigger

TreeNodeTriggerProps

TreeNodeTrigger documented props
Prop / typeDescription
children
ComponentChild[] | ComponentChildTreeNodeTriggerProps

Configure children for TreeNodeTrigger. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeNodeTriggerProps

Configure class for TreeNodeTrigger. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
onClick
MouseEventHandler<HTMLDivElement>TreeNodeTriggerProps

Configure onClick for TreeNodeTrigger. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
onFocus
FocusEventHandler<HTMLDivElement>TreeNodeTriggerProps

Configure onFocus for TreeNodeTrigger. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—

TreeProvider

TreeProviderProps

TreeProvider documented props
Prop / typeDescription
animateExpand
booleanTreeProviderProps

Configure animateExpand for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
true
children
ComponentChild[] | ComponentChildTreeProviderProps

Configure children for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
class
stringTreeProviderProps

Configure class for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
defaultExpandedIds
readonly string[]TreeProviderProps

Configure defaultExpandedIds for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
defaultSelectedIds
readonly string[]TreeProviderProps

Configure defaultSelectedIds for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
expandedIds
readonly string[]TreeProviderProps

Configure expandedIds for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
icons
TreeIconsTreeProviderProps

Configure icons for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
indent
string | numberTreeProviderProps

Configure indent for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
20
onExpandedChange
((ids: string[]) => void)TreeProviderProps

Configure onExpandedChange for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
onSelectionChange
((ids: string[]) => void)TreeProviderProps

Configure onSelectionChange for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
selectedIds
readonly string[]TreeProviderProps

Configure selectedIds for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
—
selectionMode
TreeSelectionModeTreeProviderProps

Configure selectionMode for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"none"
showIcons
booleanTreeProviderProps

Configure showIcons for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
true
showLines
booleanTreeProviderProps

Configure showLines for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
true
size
"sm" | "default" | "lg"TreeProviderProps

Configure size for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"default"
variant
"default" | "outline" | "ghost"TreeProviderProps

Configure variant for TreeProvider. Compare its accepted type with the Usage Guidance before supplying a value.

Default
"default"

Data Type Reference

Expand a card to inspect and copy the exact declaration. The code header identifies its repository file; follow imported or inherited types in the Implementation Source when you need the complete dependency chain. Required-field summaries cover fields declared directly in that type. Source-only helpers and inferred schema outputs describe the local implementation, not additional props you can pass to every component.

Tree Props

2 declared fields
TreeProps
Exported Source Declaration from Tree.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeProps before adapting it.

TreeItem Props

11 declared fields
TreeItemProps
Exported Source Declaration from TreeItem.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeItemProps before adapting it.
Required fields
nodeId, label

TreeLines Props

5 declared fields
TreeLinesProps
Exported Source Declaration from TreeLines.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeLinesProps before adapting it.
Required fields
level, parentPath, isLast, indent

TreeNodeContextValue

12 declared fields
TreeNodeContextValue
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeNodeContextValue before adapting it.
Required fields
nodeId, disabled, hasChildren, level, parentPath, isLast, itemRef

TreeNode Props

8 declared fields
TreeNodeProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeNodeProps before adapting it.
Required fields
nodeId

TreeNodeTrigger Props

2 declared fields
TreeNodeTriggerProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeNodeTriggerProps before adapting it.

TreeExpander Props

1 declared field
TreeExpanderProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeExpanderProps before adapting it.

TreeIcon Props

5 declared fields
TreeIconProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeIconProps before adapting it.

TreeLabel Props

2 declared fields
TreeLabelProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeLabelProps before adapting it.

TreeNodeActions Props

2 declared fields
TreeNodeActionsProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeNodeActionsProps before adapting it.

TreeNodeContent Props

2 declared fields
TreeNodeContentProps
Exported Source Declaration from TreeNode.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeNodeContentProps before adapting it.

TreeSelectionMode

Declaration
TreeSelectionMode
Exported Source Declaration from TreeProvider.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeSelectionMode before adapting it.

TreeProviderContextValue

21 declared fields
TreeProviderContextValue
Exported Source Declaration from TreeProvider.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeProviderContextValue before adapting it.
Required fields
registry, expandedIds, selectedIds, selectionMode, showLines, showIcons, animateExpand, indent, variant, size, focusedId, tabbableId, isExpandedControlled, isSelectedControlled, setExpandedIds, setSelectedIds, toggleExpanded, selectNode, focusNode, getNodeData

TreeItemContextValue

4 declared fields
TreeItemContextValue
Exported Source Declaration from TreeProvider.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeItemContextValue before adapting it.
Required fields
nodeId, level, parentPath, isLast

TreeProvider Props

14 declared fields
TreeProviderProps
Exported Source Declaration from TreeProvider.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeProviderProps before adapting it.

ResolveTreeIconOptions

7 declared fields
ResolveTreeIconOptions
Exported Source Declaration from tree-icons.tsx. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of ResolveTreeIconOptions before adapting it.
Required fields
state

TreeNodeRecord

9 declared fields
TreeNodeRecord
Exported Source Declaration from tree-registry.ts. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeNodeRecord before adapting it.
Required fields
nodeId, parentId, disabled, hasChildren, data, element, order, isLast, level

TreeIconState

6 declared fields
TreeIconState
Exported Source Declaration from tree-types.ts. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeIconState before adapting it.
Required fields
nodeId, branch, expanded, selected, disabled, level

TreeIconRender

Declaration
TreeIconRender
Exported Source Declaration from tree-types.ts. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeIconRender before adapting it.

TreeIconProp

Declaration
TreeIconProp
Exported Source Declaration from tree-types.ts. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeIconProp before adapting it.

TreeIcons

5 declared fields
TreeIcons
Exported Source Declaration from tree-types.ts. Referenced types retain their original names; inspect that file for imports and supporting definitions. Inspect the Complete Definition of TreeIcons before adapting it.

Take the Next Useful Step

You have the pieces. Put them into one real interaction, keep its state in one place, and check the result with the content your application will actually show.

Connect the Foundation

Return to Choose and Compose Components to connect this reference to a working screen. Keep global CSS in one entrypoint and import only the components that screen needs.

Build the Surrounding Screen

Find a neighboring interaction in the Component Library, or start with a complete Block. Replace sample content and destinations before refining the layout; a local class change can stay with the composition.

Make the Result Hold Up

Use shared theme roles for changes that belong everywhere. Then review the whole journey: keyboard focus, long labels, narrow screens and a clear way to recover when something fails.

Keep a link to the source and note your intentional changes. Your next edit should begin with a clear decision, not another search.