ComponentsVertical Navigation

VerticalNavigation

Use a vertical layout for global navigation on wide screens. treeview mode provides structured hierarchy but overrides standard keyboard navigation.

GitHub LogoSource Code

Use mode=“disclosure” for most apps. Avoid mode=“treeview” unless complex hierarchy and custom keyboard interaction are required.

Usage

The example below demonstrates a typical use of the VerticalNavigation component, combining VerticalNavigationTree to render the navigation structure and VerticalNavigationActions to display bottom-aligned actions.

Tree view

Use mode="treeview" to enable keyboard navigation with arrow keys. Press Enter to expand/collapse or select items. Set collapsible to true to allow collapsing non-leaf nodes.

Collapsible

To make the navigation collapsible, use HvVerticalNavigationHeader with a collapse button. Control the open state via the open prop and show the button by passing a handler to onCollapseButtonClick.

Enable useIcons to display icons when collapsed—defaults to the first letter of the label if no icon is provided.

Slider

If you set the slider prop to true, the navigation will be displayed as a slider instead of a tree. When the user selects an item that contains children, the content of the navigation will be replaced with the children of the selected item.

You can use this functionality to display the navigation in regular tree view mode and switch to slider mode when the screen size is lower that a certain threshold.

Custom content

Custom App