API Reference > ui-components > Tree > TreeProps > selectedNodes selectedNodes selectedNodes: string[] | (node: TreeNodeItem) => boolean Describes nodes that should be selected. May be defined as: an array of node ids a callback that takes a node and returns a boolean Defined in ui/components/src/ui-components/tree/component/Tree.tsx Line 91 Last Updated: 13 June, 2024