mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(recursive-list): integrate RecursiveList
with v11 (#1960)
This commit is contained in:
parent
76210d68d4
commit
1c3478f1bc
5 changed files with 13 additions and 26 deletions
|
@ -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}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue