About this set
Dropdowns inside a site navbar, built for navigation rather than commands. Link dropdown with icons and descriptions is a product site header with a Product panel of four links, each with an icon tile and a short description, and a footer link to the changelog; Solutions opens a plain list. Small mega dropdown is an outdoor shop header whose Shop panel has two headed link columns, Clothing and Gear, beside a featured journal card. Because these panels hold links to pages, they follow the WAI-ARIA disclosure pattern instead of role=”menu”: the button has aria-expanded and aria-controls, Tab moves through the links in order, Esc closes the panel and returns focus, and a click outside or tabbing away closes it. Link columns are lists labelled by their headings. Under 640px secondary links hide, and panels stretch to the width of the navbar with the mega columns rewrapped. The Bootstrap version uses .navbar with .dropdown items, which Bootstrap positions with CSS inside a navbar, and adds its arrow-key navigation.
What’s included
- Disclosure pattern for navigation, not an ARIA menu
- Rich links with icon tiles and descriptions
- Two-column mega dropdown with a featured card
- Esc, outside click and focus leaving all close the panel
- Panels stretch to the navbar width on small screens
Accessibility
Each dropdown button exposes aria-expanded and aria-controls, the panels hold ordinary links in reading order, and link columns are lists labelled by their headings. Esc closes an open panel and returns focus to its button. Links and buttons have visible focus outlines, and the panel animation and chevron rotation stop under prefers-reduced-motion.
Customise it
The palette is the --nv-* custom properties on .nv; add the green class for the second colour scheme. Widths are .nv-panel (348px), .slim (230px) and .mega (620px). In Tailwind edit the hex values and the w-[...] utilities.






