Magoo Component UI logo Magoo Component UI
← Catalog

Dropdown Navbar

navbar-dropdown organism experimental

A primary site header whose top links open dropdowns, and whose dropdown items open a third-level side flyout.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Resting

Props

NameTypeReq
links array ✓
logo_text string
logo_href string
label string

Slots

  • actions — Trailing actions such as a log-in link and a sign-up button.

Related components

How to use

Desktop reveal is pure CSS (hover and keyboard focus-within), so it works with no JavaScript and renders correctly in screenshots via a static data-open="true". behavior.js adds click/tap toggling for touch and keyboard, closes sibling branches when one opens, and closes everything on Escape or an outside click; it syncs aria-expanded on each trigger. The self-init reads state from the DOM (data-open attributes) — no props object is passed. On small screens pair it with menu-fullscreen or bottom-nav rather than relying on the horizontal bar. When wiring to a Drupal menu, map the menu tree's .below onto children (see docs/drupal-menus.md, three-level macro).

Use cases

navigation WCAG AA SEO 40 dir: both ai-generated