Overview#
The Vertical Navigation Template is designed for sidebars, especially in apps or admin panels with multiple sections.
When to Use
- As the primary navigation in an app or website
- When there are 3–7 main navigation links
- When vertical space is limited
States#
- Default: Unselected, idle state of a item
- Active: The currently selected item
- Hover: The item being hovered over
- Disabled: A item that is not interactive or currently available
Anatomy (Figma)#
<Nav horizontal | Item>: Partial component. Can be set to its state.[Nav horizontal]: Template component that can be detached if needed.
Extend the component#
In Figma and in code, you can use the slot to enhance the template and display a menu.
- Replace a
<Nav horizontal | item>or add the menu component in the template. You may detach it if needed. - In the Menu component properties, swap the Trigger slot with a
<Nav horizontal | item>
Look and feel#
Spark Theme
Ocean Theme
This template has been completely built with intentional tokens, giving the ability to display the right color scheme accordingly to the theme and mode where it is deployed.
Best Practice#
- Keep link labels short and scannable
- Reserve right-aligned space for profile/actions if needed
- Keep alignment consistent (use design tokens)
In code#
For Developers
This is purely layout markup — no JS logic is included.
Active state
To display one item as active, add the class “active” to the anchor.
Disabled state
To display one item as disabled, add the class “disabled” to the anchor.
Example
<nav class="nv-navbar">
<ul class="flex gap-x-0.5">
<li>
<a href="#" class="nv-link">
<NvIcon Name="NvIcon.NameEnum.home" Size="NvIcon.SizeEnum.md"> </NvIcon>
Home
</a>
</li>
<li>
<a href="#" class="nv-link">
<NvIcon Name="NvIcon.NameEnum.layoutdashboard" Size="NvIcon.SizeEnum.md"> </NvIcon>
Dashboard
</a>
</li>
<li>
<a href="#" class="nv-link active">
<NvIcon Name="NvIcon.NameEnum.stack" Size="NvIcon.SizeEnum.md"> </NvIcon>
Projects
<NvIcon Name="NvIcon.NameEnum.chevrondown" Size="NvIcon.SizeEnum.sm"> </NvIcon>
</a>
</li>
<li>
<a href="#" class="nv-link">
<NvIcon Name="NvIcon.NameEnum.stack" Size="NvIcon.SizeEnum.md"> </NvIcon>
Tasks
<span class="nv-badge bg-feedback-warning-high text-feedback-warning-high rounded-full w-5 flex items-center justify-center text-sm">
3
</span>
</a>
</li>
<li>
<a href="#" class="nv-link">
<NvIcon Name="NvIcon.NameEnum.notebook" Size="NvIcon.SizeEnum.md"> </NvIcon>
Documentation
</a>
</li>
<li>
<a href="#" class="nv-link">
<NvIcon Name="NvIcon.NameEnum.headset" Size="NvIcon.SizeEnum.md"> </NvIcon>
Support
</a>
</li>
<li>
<a href="#" class="nv-link disabled">
<NvIcon Name="NvIcon.NameEnum.contract" Size="NvIcon.SizeEnum.md"> </NvIcon>
Contracts
</a>
</li>
</ul>
</nav>