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/deprecated/component/Tree.tsx Line 86 Last Updated: 12 June, 2024