# Navbar

https://docs.kleaver.ie/components/navbar/

The top .nav bar handles horizontal navigation. For in-page or cross-page wayfinding, the .sidenav component (used in the left column of this very page) provides a sticky vertical table of contents with active-state highlighting via aria-current.

## Catalog

4. Navbar — `.nav`  ·  see **`components.html#navbar`**

Top navigation. Sub-elements `.nav__brand`, `.nav__links`, and `.nav__toggle` (hamburger). Always give the `<nav>` an `aria-label`. **Mobile:** below 640px the links collapse behind the `.nav__toggle` button — but only once `ui.js` adds `.is-enhanced`; **without JS the links simply wrap and stay reachable** (progressive enhancement). The toggle needs `aria-controls="<id of nav__links>"` and `aria-expanded`; `ui.js` toggles `.is-open` and closes the menu on Escape, outside-click, or link-follow. Keep `.nav__links` in sync across pages as integrations are added (it's duplicated per page — there's no include step). If a page shows a *demo* nav too, give that one a unique `id`/`aria-controls` to avoid duplicate IDs.
