From 384dd3952e503dc0963bab834b2381dcc209aa39 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 21 Nov 2024 10:37:33 -0800 Subject: [PATCH] docs(recursive-list): update mentions of renamed `children` prop --- docs/src/pages/components/RecursiveList.svx | 12 +++++++++--- docs/src/pages/components/TreeView.svx | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/src/pages/components/RecursiveList.svx b/docs/src/pages/components/RecursiveList.svx index 76040ca8..d5941bda 100644 --- a/docs/src/pages/components/RecursiveList.svx +++ b/docs/src/pages/components/RecursiveList.svx @@ -1,11 +1,17 @@ This component uses the [svelte:self API](https://svelte.dev/docs#svelte_self) to render the [UnorderedList](/components/UnorderedList) and [OrderedList](/components/OrderedList) components with tree structured data. -A child node can render text, a link, HTML content, and other children. +A child node can render text, a link, HTML content, and other child nodes. + + +
+ In version 0.86.0, the children prop was renamed to nodes for Svelte 5 compatibility. +
+
@@ -15,7 +21,7 @@ A child node can render text, a link, HTML content, and other children. ## Unordered -The `children` prop accepts an array of child nodes. +The `nodes` prop accepts an array of child nodes. By default, the list type is unordered. diff --git a/docs/src/pages/components/TreeView.svx b/docs/src/pages/components/TreeView.svx index a8dcd982..c7c97c92 100644 --- a/docs/src/pages/components/TreeView.svx +++ b/docs/src/pages/components/TreeView.svx @@ -9,11 +9,11 @@ The `nodes` prop accepts an array of child nodes. Each node should contain `id` Optional properties include `disabled`, `icon`, and `nodes`. -A parent node contains `nodes` (children) while a leaf node does not. +A parent node contains `nodes` while a leaf node does not.
- In version 0.86.0, the children prop has been renamed to nodes for Svelte 5 compatibility. + In version 0.86.0, the children prop was renamed to nodes for Svelte 5 compatibility.