Blazor playground

Nova v3.37.0

Preview

Blazor

Breadcrumbs

nv-breadcrumbs

A trail of links that shows where a page sits in a hierarchy and lets people move up a level.

Live demo

Use breadcrumbs in applications with several levels of pages, placed below the header and above the page title. They supplement the main navigation; don't make them the only way to move around, and don't use them in flat structures.

Anatomy

Two breadcrumb trails with four callouts: 1 marks a breadcrumb link, 2 the slash separator, 3 the ellipsis that opens hidden ancestors, and 4 the list of those ancestors.

The parts of breadcrumbs.
  1. Breadcrumb (nv-breadcrumb) holds a link to one ancestor page.
  2. Separator is the slash Nova adds after each breadcrumb.
  3. Overflow trigger is a breadcrumb with type="collapsed". It shows "..." and opens a list.
  4. Overflow list holds the middle ancestors, each as an <li> with a link.

States and themes

Breadcrumb links and the overflow trigger have default, hover and keyboard focus states. Their colours follow Spark or Ocean; keep the focus indicator visible and use real links for ancestor destinations.

Current page and long paths

Add the current page as the last breadcrumb with current. Nova hides it visually and marks it aria-current="location", so pair the trail with a visible page heading. When a path has more than three ancestors, keep the first and the nearest visible and collapse the rest. Use short labels, and add a tooltip only to clarify one.

The design limits the visible trail to three navigation items, including the overflow trigger. Choose and compose those items in your application; adding many nv-breadcrumb children does not collapse them automatically. This trail describes the page hierarchy, rather than the user's browsing history.

DoKeep the first and nearest pages, and collapse the rest.
Don'tAvoid trails that list every ancestor.

Sources