Builtin component

ResourceTree

Hierarchical tree navigator.

Props

PropTypeDefaultDescription
labelstring—Tree label
branchResourceTreeBranchProps—Root branch definition
selectedPathstring—Currently selected path
stateKeystring—Persistence key for selection state
searchPlaceholderstring—Search input placeholder

Example

ResourceTree({
  label: "Explorer",
  branch: {
    source: tree(),
    nameField: "name",
    rowLink: { path: "/item/:id", params: { id: "id" } },
    children: { source: children(), nameField: "name" },
  },
})