Vue playground

Nova v3.37.0

Preview

Vue

Navbar Item

nv-navbar-item

One labelled destination in a navbar, with current, disabled and notification states.

Parts

Live demo

Use a navbar item for one destination inside Navbar. It renders a native link with a visible label. The parent supplies the navigation landmark and list; the item supplies its destination and state.

Anatomy

The Navbar anatomy shows the current and default items with their leading icon, label, notification and trailing icon. Keep shared layout and state guidance with the parent navbar.

Usage

  • Set href and a short label for every destination.
  • Set current from the application route. The link exposes aria-current="page"; clicking alone does not change current.
  • Use disabled for an unavailable destination. Its label remains visible, while its link destination and keyboard tab stop are removed.
  • Add leadingIcon or trailingIcon for supporting cues. Keep the label visible; the icons are decorative.
  • A notification count appears from 1. Translate notificationLabel, using {count} for the number, to describe it to assistive technology.

The parent guidance covers wrapping, themes, keyboard use and choosing a single current destination. Dropdown menus are not supported.

Sources