Skip to content
+

Simple Tree View - Selection

Handle how users can select items.

Multi selection

The Tree View also supports multi-selection:

Controlled selection

Use the selected prop to control the selected items.

You can use the onNodeSelect prop to listen to changes in the selected items and update the prop accordingly.

Track node selection change

Use the onNodeSelectionToggle if you want to react to a node selection change:

No node selection recorded

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.