Skip to content

Top Nav Mega Menu Item

@astryxdesign/core v0.7.1 · TopNavMegaMenuItem

Props ​

PropTypeDefaultDescription
titlestring—Display title for the menu item. Required.
descriptionstring—Optional description text displayed below the title.
hrefstring—URL to navigate to when clicked. Without it the item renders as a button.
asNavLinkComponent—Custom component to render instead of <a> for link items. Overrides the provider-level default set by LinkProvider.
iconClassstring—CSS icon class drawn in the leading icon box. The icon slot takes precedence.

Events ​

The item emits no events of its own. A click closes the surrounding TopNavMegaMenu, and navigation goes through href or the component passed to as.

Slots ​

  • icon: icon content placed ahead of the title. Replaces the glyph from iconClass. Hidden from assistive technology, so the title carries the meaning.