Overview#
The Vertical Navigation Template is designed for sidebars, especially in apps or admin panels with multiple sections.
When to Use
- For layouts with persistent side navigation
- When there are many navigation items or nested sections
- When vertical screen space is abundant
Characteristics
- Vertical list of links
- Can include icons, section titles, and nested items
- Easily paired with a header or main content area
States#
- Default: Unselected, idle state of a tab
- Active: The currently selected tab
- Hover: The tab being hovered over
- Disabled: A tab that is not interactive or currently available
Anatomy (Figma)#
[Nav vertical]: Template component that can be detached if needed.<Nav vertical | Item>: Partial component. Can be set to its state.<Nav vertical | Separator horizontal>: Partial components, separates the items.
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-sidenav flex flex-1 flex-col">
<ul role="list" class="flex flex-1 flex-col gap-y-0.5">
<li>
<a href="/login" class="nv-link">
<nv-icon role="img" aria-label="home-icon" name="home" size="md">
</nv-icon>
Home
</a>
</li>
<li>
<a href="/form" class="nv-link active">
<nv-icon
role="img"
aria-label="layout-dashboard-icon"
name="layout-dashboard"
size="md"
>
</nv-icon>
Dashboard
</a>
</li>
<li class="collapsible">
<a href="/typo" class="nv-link">
<span class="flex items-center gap-x-2">
<nv-icon role="img" aria-label="stack-icon" name="stack" size="md">
</nv-icon>
Projects
</span>
<nv-iconbutton
class="nv-iconbutton"
size="md"
name="chevron-down"
emphasis="lower"
>
</nv-iconbutton>
</a>
</li>
<li>
<a href="#" class="nv-link">
<nv-icon
role="img"
aria-label="checklist-icon"
name="checklist"
size="md"
>
</nv-icon>
Tasks
</a>
</li>
<li>
<a href="#" class="nv-link">
<nv-icon
role="img"
aria-label="notebook-icon"
name="notebook"
size="md"
>
</nv-icon>
Documentation
</a>
</li>
<li>
<a href="#" class="nv-link">
<nv-icon role="img" aria-label="headset-icon" name="headset" size="md">
</nv-icon>
Support
</a>
</li>
<li>
<a href="#" class="nv-link disabled">
<nv-icon
role="img"
aria-label="contract-icon"
name="contract"
size="md"
>
</nv-icon>
Contracts
</a>
</li>
</ul>
</nav>