Source Menu

{
  handle: "main-menu",
  items: [
    {
      items: [
        {
          items: [
            {
              title: "Sub Menu A - Sub Menu 1 - Sub Menu A11",
              url: "/pages/submenu-a-submenu-1-submenua11",
            },
            {
              title: "Sub Menu A - Sub Menu 1 - Sub Menu A12",
              url: "/pages/submenu-a-submenu-1-submenua12",
            },
          ],
          title: "Sub Menu A - Sub Menu 1",
          url: "/pages/submenu-a-submenu-1",
        },
        {
          title: "Sub Menu A - Sub Menu 2",
          url: "/pages/submenu-a-submenu-2",
        },
      ],
      title: "Sub Menu A",
      url: "/pages-submenu-a",
    },
    {
      items: [
        {
          title: "Sub Menu B - Sub Menu 1",
          url: "/pages/submenu-b-submenu-1",
        },
        {
          title: "Sub Menu B - Sub Menu 2",
          url: "/pages/submenu-b-submenu-2",
        },
      ],
      title: "Sub Menu B",
      url: "/pages-submenu-b",
    },
    {
      items: [],
      title: "Sub Menu C",
      url: "/pages-submenu-c",
    },
  ],
  title: "Main menu",
}

Properties

string

Returns the menu's handle.

array

The menu's child items.

string

Returns the menu's title.