Skip to main content

TreeNav

TreeNav can be used for creating a navigational tree structure, allowing users to expand and collapse sections. The tree should be no more than two sections deep.

If a TreeNav.Section has children defined, a Show/Hide button will be displayed in the parent item on hover. Clicking it will expand and collapse the section without firing that section's onClickTrigger event.

Result
Loading...
Live Editor

Using Offset Triggers

It's possible to use the offsetTriggers prop to add a negative left margin to the triggers, which can be useful for aligning them with other elements in your layout.

Result
Loading...
Live Editor

Props

TreeNav

TreeNavHeader

TreeNavItem

TreeNavSection