Skip to main content

Mega menu

MegaMenu is a large, expandable panel which opens from the main navigation. It displays and categorizes links to key application pages, allowing users to easily access a wide range of app features and content from a single menu. It organizes complex site structures into a visually clear, multi-column layout, enhancing user experience by reducing the number of clicks needed to find information.

Also known as: Multi-column menu, Expanded menu, Mega dropdown menu
Salt package@salt-ds/core
  • When your website or application has a large number of pages, categories, or options that need to be organized and easily accessible from the main navigation.
  • When you want to provide users with a clear overview of complex site structures, allowing them to quickly find relevant content without excessive clicking.
  • When you need to group related links, resources, or products in a visually organized, multi-column layout.
  • When your site has a simple structure with only a few navigation options or categories, as a mega menu may be unnecessarily complex.
  • When you want to maintain a minimal or streamlined user interface, especially for mobile devices where mega menus can be difficult to use.
  • Consider these alternatives instead:
    • Dropdown menus
    • Vertical navigation
    • Hamburger menu
  • If multiple top-level navigation items belong to the same navigation system, use one same pattern across them to keep the experience consistent.
  • If any top-level item requires a mega menu, use the mega menu for all top-level items in that navigation system.
  • The mega menu opens on click, not on hover, so it does not expand unexpectedly as the pointer moves across the navigation.
  • It closes when the trigger is clicked again, an item is selected, the user clicks outside the panel, or the user presses Escape.
  • Give each MegaMenuGroup a single MegaMenuGroupHeading.
  • Keep groups concise, splitting larger sets into additional groups so the menu stays scannable.
  • Wrap each mega menu in its own <li> within the trigger <ul> — arrow-key navigation between triggers relies on it.
  • Place MegaMenuActions inside MegaMenuContent, after MegaMenuGroups.
  • MegaMenuAside position follows source order: before MegaMenuContent it renders to the left, after it renders to the right.

To import MegaMenu and related components from the core package, use:

import {
  MegaMenu,
  MegaMenuTrigger,
  MegaMenuPanel,
  MegaMenuAside,
  MegaMenuContent,
  MegaMenuGroups,
  MegaMenuGroup,
  MegaMenuGroupHeading,
  MegaMenuList,
  MegaMenuListItem,
  MegaMenuActions,
} from "@salt-ds/core";