XDSNavMenuItem@xds/core · NavMenu
Usage
Menu item used within navigation components like SideNav and TopNav.Import
tsimport {XDSNavMenuItem} from '@xds/core/NavMenu'
Props
| Prop | Type | Description |
|---|---|---|
labelrequired | ReactNode | Primary label text. |
icon | XDSIconType | Icon displayed before the label. |
description | ReactNode | Secondary description below the label. |
href | string | URL to navigate to. Renders as an anchor. |
onClick | () => void | Callback when the item is selected. |
isDisabled | boolean (default: false) | Whether the item is disabled. |