Live demo
Demo source
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
hrefand a shortlabelfor every destination. - Set
currentfrom the application route. The link exposesaria-current="page"; clicking alone does not changecurrent. - Use
disabledfor an unavailable destination. Its label remains visible, while its link destination and keyboard tab stop are removed. - Add
leadingIconortrailingIconfor supporting cues. Keep the label visible; the icons are decorative. - A
notificationcount appears from 1. TranslatenotificationLabel, 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.