Skip to main content

menu

Binds a widget to a navigation menu defined in the store settings. Returns an array of menu items, each with title, url, and optional children for nested submenus.

Properties

PropertyTypeRequiredDescription
type"menu"YesField type identifier
labelstringYesLabel shown in the builder
defaultstringNoDefault menu handle (e.g., "header")

Usage

{
"nav": {
"type": "menu",
"label": "Menu",
"default": "header"
}
}
Menu item structure

Each menu item has title and url. Items with nested links also have a children array containing sub-items with the same structure.

Interactive Preview

Interactive Preview
Live Output
{
  "nav": [
    {
      "title": "Home",
      "url": "/"
    },
    {
      "title": "Products",
      "url": "/collection/all"
    },
    {
      "title": "Categories",
      "children": [
        {
          "title": "New Arrivals",
          "url": "/collection/new"
        },
        {
          "title": "Best Sellers",
          "url": "/collection/best"
        }
      ]
    }
  ]
}