mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
17 lines
363 B
Svelte
17 lines
363 B
Svelte
<script lang="ts">
|
|
import { RecursiveList } from "../types";
|
|
|
|
const children = [
|
|
{
|
|
text: "Item 1",
|
|
children: [{ text: "Item 1a", children: [] }],
|
|
},
|
|
{
|
|
text: "Item 2",
|
|
children: [{ href: "https://svelte.dev/" }],
|
|
},
|
|
{ text: "Item 3" },
|
|
] as const;
|
|
</script>
|
|
|
|
<RecursiveList type="ordered" children="{children}" />
|