Examples
Single selectable
Multiselectable
A tree view can be setup to allow multiple nodes to be selected. When a tree view is intended to allow multiple selection, the isMultiSelectable property must be passed.
With separate selection and expansion
The hasSelectableNodes modifier will separate the expansion and selection behaviors, allowing a parent node to be selected or deselected without toggling its expansion.
With search
A search input can be used to filter tree view items. It is recommended that a tree view with more than 7 nodes includes a search input.
With checkboxes
With icons
With unique icon per item
With badges
With custom badges
With action items
Guides
Compact
Compact, no background
With memoization
Turning on memoization with the useMemo property helps prevent unnecessary re-renders for large data sets. With this flag active, activeItems must pass in an array of nodes along the selected item’s path to update properly.