Smelte logo
SMELTE
Github Smelte

Treeviews

I selected nothing
<script>
  import Treeview from "smelte/src/components/Treeview";
</script>

<Treeview items={[
  {
    text: "test",
    items: [
      { text: "subtest" },
      { text: "subtest2" },
      { text: "subtest3" },
      { text: "subtest4", 
        items: [
          { text: "subtest" },
          { text: "subtest2" },
          { text: "subtest3" },
          { text: "subtest4" },
        ]
      },
    ]
  },
  {
    text: "test2",
    items: [
      { text: "subtest" },
      { text: "subtest2" },
      { text: "subtest3" },
      { text: "subtest4" },
    ]
  },
  {
    text: "test3",
    items: [
      { text: "subtest" },
      { text: "subtest2" },
      { text: "subtest3" },
      { text: "subtest4" },
    ]
  }
]} />