Live demo
Demo source
nv-sidebarnavitem wraps a link with an optional icon and
notificationCount. The sidebar marks it active when its link matches
activePath. With collapsible, it opens and closes its sub-items instead of
following its link; in a collapsed sidebar it follows the link.
Anatomy
The sidebar anatomy shows navigation items with icons and nested links in the sidebar composition.
Usage
Keep the current destination visually distinct and give every collapsed
item a recognisable icon and an accessible name. The parent sidebar design
advises against collapsing navigation that depends on text-only items or
visible sub-items. Group related destinations with nv-sidebargroup rather
than adding horizontal scrolling.