Live demo
Demo source
A breadcrumb is one item in breadcrumbs. Put a link to the ancestor page in its default slot; Nova adds the separator.
currentmarks the last item as the current page. It is hidden visually and announced as the current location.type="collapsed"turns the item into a "..." button that opens a list of ancestors. Put each one inside an<li>.tooltipadds a short hint to the item.
Anatomy
The breadcrumbs anatomy shows breadcrumb items and separators together in the navigation trail.
Placement and states
Follow the breadcrumbs guidance for the whole trail: place it below the main navigation and above the page heading, show at most three navigation items, and collapse middle ancestors in longer paths. The component does not collapse a long path automatically.
Use an actual link with a short destination label for each ancestor. Links
and the overflow button have default, hover and keyboard-focus states in
Spark and Ocean. Keep the focus indicator visible. Define the current item
with current even though it is visually hidden, and show the same page name
as the page heading.