diff --git a/docs/src/pages/components/TreeView.svx b/docs/src/pages/components/TreeView.svx index fc35f110..a8dcd982 100644 --- a/docs/src/pages/components/TreeView.svx +++ b/docs/src/pages/components/TreeView.svx @@ -1,15 +1,21 @@ ## Default -The `children` prop accepts an array of child nodes. Each node should contain `id` and `text` properties. +The `nodes` prop accepts an array of child nodes. Each node should contain `id` and `text` properties. -Optional properties include `disabled`, `icon`, and `children`. +Optional properties include `disabled`, `icon`, and `nodes`. -A parent node contains `children` while a leaf node does not. +A parent node contains `nodes` (children) while a leaf node does not. + + +
+ In version 0.86.0, the children prop has been renamed to nodes for Svelte 5 compatibility. +
+
Every node must have a unique id.
@@ -27,7 +33,7 @@ The destructured `let:node` contains the following properties: id: the node id text: the node text expanded: true if the node is expanded - leaf: true if the node does not have children + leaf: true if the node does not have child nodes disabled: true if the node is disabled selected: true if the node is selected