Tree

WAI-ARIA treeview with roving tabindex, type-ahead, and arrow-key nav.

Live

Example

tree.Render(tree.Config{
    ID: "files", Label: "Project files", SignalPrefix: "files-tree",
    Nodes: []tree.Node{
        {ID: "src", Label: "src", Expanded: true, Children: []tree.Node{
            {ID: "src-main", Label: "main.go", Href: "#main"},
        }},
        // {ID: "vendor", Label: "vendor", LazyPath: "/tree/vendor"} // RPC lazy-load
    },
})