diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 02ca94c3..746b9c1e 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3061,10 +3061,10 @@ export interface RecursiveListNode { ### Props -| Prop name | Required | Kind | Reactive | Type | Default value | Description | -| :-------- | :------- | :--------------- | :------- | --------------------------------------------------------------------------- | ------------------------ | ---------------------------------- | -| children | No | let | No | Array | [] | Specify the children to render | -| type | No | let | No | "unordered" | "ordered" | "ordered-native" | "unordered" | Specify the type of list to render | +| Prop name | Required | Kind | Reactive | Type | Default value | Description | +| :-------- | :------- | :--------------- | :------- | ------------------------------------------------------------------------ | ------------------------ | ---------------------------------- | +| nodes | No | let | No | Array | [] | Specify the nodes to render | +| type | No | let | No | "unordered" | "ordered" | "ordered-native" | "unordered" | Specify the type of list to render | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index f755b08f..43d936c4 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -9881,10 +9881,10 @@ "filePath": "src/RecursiveList/RecursiveList.svelte", "props": [ { - "name": "children", + "name": "nodes", "kind": "let", - "description": "Specify the children to render", - "type": "Array", + "description": "Specify the nodes to render", + "type": "Array", "value": "[]", "isFunction": false, "isFunctionDeclaration": false, diff --git a/src/RecursiveList/RecursiveList.svelte b/src/RecursiveList/RecursiveList.svelte index cd876b72..5909b056 100644 --- a/src/RecursiveList/RecursiveList.svelte +++ b/src/RecursiveList/RecursiveList.svelte @@ -5,10 +5,10 @@ */ /** - * Specify the children to render - * @type {Array} + * Specify the nodes to render + * @type {Array} */ - export let children = []; + export let nodes = []; /** * Specify the type of list to render @@ -26,8 +26,8 @@ native="{type === 'ordered-native'}" {...$$restProps} > - {#each children as child} - {#if Array.isArray(child.children)} + {#each nodes as child} + {#if Array.isArray(child.nodes)} diff --git a/tests/RecursiveList.test.svelte b/tests/RecursiveList.test.svelte index 4bc642ed..c686401d 100644 --- a/tests/RecursiveList.test.svelte +++ b/tests/RecursiveList.test.svelte @@ -1,19 +1,19 @@ - + diff --git a/types/RecursiveList/RecursiveList.svelte.d.ts b/types/RecursiveList/RecursiveList.svelte.d.ts index 1802e4d0..f261fda1 100644 --- a/types/RecursiveList/RecursiveList.svelte.d.ts +++ b/types/RecursiveList/RecursiveList.svelte.d.ts @@ -11,10 +11,10 @@ type $RestProps = SvelteHTMLElements["ul"] & SvelteHTMLElements["ol"]; type $Props = { /** - * Specify the children to render + * Specify the nodes to render * @default [] */ - children?: Array; + nodes?: Array; /** * Specify the type of list to render