Angular playground

Nova v3.38.0

Preview

Angular

Vertical navigation

A side navigation for apps with many or nested sections.

Overview#

The Vertical Navigation Template is designed for sidebars, especially in apps or admin panels with multiple sections.

A vertical navigation with Home, an expanded and active Dashboard holding Projects A to C, Tasks with a count, Documentation, Support and a disabled Contracts item.

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#

The vertical navigation with numbered markers on four items: Home, Dashboard, Tasks and Contracts.
  1. Default: Unselected, idle state of a tab
  2. Active: The currently selected tab
  3. Hover: The tab being hovered over
  4. Disabled: A tab that is not interactive or currently available

Anatomy (Figma)#

The vertical navigation's anatomy, with markers on an item, an expanded group and the navigation as a whole.
  1. [Nav vertical]: Template component that can be detached if needed.
  2. <Nav vertical | Item>: Partial component. Can be set to its state.
  3. <Nav vertical | Separator horizontal>: Partial components, separates the items.

Look and feel#

Spark Theme

The vertical navigation in the Spark theme, in dark and light mode.

Ocean Theme

The vertical navigation in the Ocean theme, in dark and light mode.

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

html<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>