TreeView
ExpertA hierarchical list component with collapsible nodes.
Preview
Usage
<TreeView nodes={treeNodes} bind:selectedId={selectedId} />Props
| Name | Type | Default | Description |
|---|---|---|---|
| nodes | TreeNode[] | [] | The hierarchical data to display. |
| selectedId | string | '' | The ID of the currently selected node. |