Top Nav Mega Menu Item
@astryxdesign/core v0.7.1 · TopNavMegaMenuItem
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Display title for the menu item. Required. |
description | string | — | Optional description text displayed below the title. |
href | string | — | URL to navigate to when clicked. Without it the item renders as a button. |
as | NavLinkComponent | — | Custom component to render instead of <a> for link items. Overrides the provider-level default set by LinkProvider. |
iconClass | string | — | 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 fromiconClass. Hidden from assistive technology, so the title carries the meaning.