NavigationMenuItem
Overview
NavigationMenuItem
represents an item in a navigation menu. Each item can include links, child menu items, and associated blocks or call-to-action elements.
Attributes
id
type: string
A unique identifier for the navigation menu item.
link
type: StorefrontLink (optional)
A link object pointing to a specific resource, such as a page, product, or category.
children
type: NavigationMenuItem[] (optional)
A list of child menu items, enabling hierarchical navigation structures.
block
type: any (optional)
An optional content block associated with the menu item.
ctas
type: array of objects (optional)
A list of call-to-action elements associated with the menu item. Each call-to-action object includes the following:
href
: string (optional)label
: string (optional)variant
: ButtonVariant (optional)
showAllLink
type: boolean (optional)
Indicates whether a "Show All" link should be displayed.
commerceCategory
type: string (optional)
Represents the associated commerce category for the menu item.