GitHub - esinx/svelte-tree: A tree-like outline view for svelte (original) (raw)

<Tree {tree} let:node>

{node.name}

Use the slot space to display custom nodes. let:node will give your children DOM/components the access to the nodes being rendered.