feat(recursive-list): integrate RecursiveList with v11 (#1960)

This commit is contained in:
Eric Liu 2024-04-21 14:36:21 -07:00 committed by GitHub
commit 1c3478f1bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 26 deletions

View file

@ -4,29 +4,14 @@
const children = [
{
text: "Item 1",
children: [
{
text: "Item 1a",
children: [{ html: "<h5>HTML content</h5>" }],
},
],
children: [{ text: "Item 1a", children: [] }],
},
{
text: "Item 2",
children: [
{
href: "https://svelte.dev/",
},
{
href: "https://svelte.dev/",
text: "Link with custom text",
},
],
children: [{ href: "https://svelte.dev/" }],
},
{
text: "Item 3",
},
];
{ text: "Item 3" },
] as const;
</script>
<RecursiveList type="ordered" children="{children}" />