Throttle Builder · Components · Basic

Menu

A named menu from Site settings: horizontal, vertical, horizontal with a drawer on phones, or mega.

The Menu component in the Components library, with its description and settings
The Menu component in the Components library, with its description and settings

What it is for

A navigation menu built from a named menu in Site settings: horizontal, vertical, with a drawer on phones, or a mega menu. It is the main navigation in the header and footer.

  • Mega panels work on top-level items of the menu named header, in the mega mode.
  • Menus are limited to three levels.

Where you can use it

On any page, template, saved section, header or footer.

In the editor, open the Add tab of the left panel and drag it into a column. Its type is basic.menu, version 2.

Options

Content tab

OptionKeyAllowed valuesDefault
Menu namemenuText, up to 40 characters.header
ModemodeHorizontal (horizontal), Vertical (vertical), Horizontal, drawer on phone (drawer), Mega menu (mega).Horizontal (horizontal)
StylevariantStandard (default), Store header (two levels) (storefront).Standard (default)

Style tab

OptionKeyAllowed valuesDefault
AlignmentalignLeft, center, right or justify.left
ColourcolorA theme colour (token:name) or a hex colour (#rrggbb or #rrggbbaa).Empty
Sizesizexs, s, m, l, xl, 2xl, 3xl, or 8 to 200 px.m

Every component also has the common options: Hide, Anchor, Space above, Space below, Entrance animation and Entrance delay.

Data

This component shows store data. In the editor, choose what it shows under Data on the Content tab. An AI agent sets it with set_data_binding.

InputNameTakesRequiredFilled by
Category treecategoriescategory[]NoCategories (catalog.categories)

Categories options

The store's categories, or the subcategories of one.

OptionKeyAllowed valuesDefault
Parent category (catalog id)parentText, up to 64 characters.Empty
LevelsdepthA number from 1 to 2.1

Responsive behaviour

Every option can be set again for tablet (768 to 1024 px) and phone (767 px and below): switch the device at the top of the editor and change it there. Tablet starts from the desktop value and phone from the tablet value, so you only set what differs.

In the drawer mode the menu is a row on larger screens and a menu button that opens a full-screen drawer on phones (up to 767px wide). If you also made a menu named mobile, phones show that one in place of the header menu. In the mega mode, panels become stacked lists on phones.

SEO and accessibility

Every level is a nested list of real links (a tags) inside a nav element, written on the server with the page: nothing is fetched in the browser. An item whose target no longer exists is shown as text, not as a link. Without script, submenus open on hover and focus.

Versions

The editor adds version 2. Pages saved earlier may hold version 1; they keep working, and a page that holds an older version is upgraded to version 2 when you open it in the editor. There is no Update button for built-in components; Update to vN exists only for custom components.

With an AI agent

An agent adds it with add_widget and changes its options with update_node, using the keys above. See the MCP tool reference.

The widget an agent adds
{
  "type": "basic.menu",
  "v": 2,
  "props": {}
}
Generated from the code
The option tables on this page are generated from the component definitions in @usethrottle/builder-schema 0.4.2 and @usethrottle/storefront-react 0.4.5.