Skip to content

Top Nav Mega Menu

@astryxdesign/core v0.7.1 · TopNavMegaMenu

Props ​

PropTypeDefaultDescription
labelstring—Visible label for the trigger button. Required.
showDelaynumber150Delay in milliseconds before showing the menu on hover.
hideDelaynumber250Delay in milliseconds before hiding the menu after the pointer leaves.

Events ​

  • openChange(isOpen: boolean): fires when the mega menu opens or closes. Useful for coordinating wrapper styles.

Slots ​

  • default: menu items. Typically TopNavMegaMenuItem components, but any content works.
  • featured: featured content. Rendered as the right-hand panel on desktop, and below the items in the mobile drawer.