Skip to Content
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
Note

The tree defaults to mode="disclosure", which suits most apps. Set mode="treeview" for arrow-key navigation — it overrides standard keyboard behavior, so only use it when the hierarchy genuinely needs it.

Usage

HvVerticalNavigationTree renders a data array; HvVerticalNavigationActions pins actions to the bottom. Each child is separated by a divider, so grouping is a matter of how you nest them.

Collapsible

Use HvVerticalNavigationHeader with onCollapseButtonClick to add a collapse button, and useIcons to show icons when collapsed. Items without an icon show the first letter of their label.

When collapsed, items with data open their children in a popup: hover to open it, click to keep it open. Items without data are selected on click.

Menu

Slider

slider replaces the content with an item’s children instead of expanding in place, one level at a time. Use it when the screen is too narrow for a nested tree.

Custom content

HvVerticalNavigation accepts arbitrary children, so branding or a primary action can sit alongside the tree.

Custom App
Last updated on