Navigation Menu
This is a legacy API. Use the latest version of the App Bridge Navigation Menu instead.
The NavigationMenu
component creates a navigation menu for your app. On desktop web browsers, the navigation menu appears as part of the app nav, on the left of the screen. On Shopify mobile, the navigation menu appears in a dropdown from the TitleBar
.

There are 2 ways to use the navigation menu action set:
Anchor to Plain JavaScriptPlain Java Script
Anchor to Example codeExample code
Import the createApp
function from @shopify/app-bridge
and the NavigationMenu
and AppLink
actions from @shopify/app-bridge/actions
. Then use the createApp
function to create an app.
In the following example, config
is a valid App Bridge configuration object. Learn more about configuring App Bridge.
Create any number of AppLink
instances and then pass them into NavigationMenu
. Each AppLink
instance represents a link on the menu.
The first seven links are rendered by default. Anything above seven links is hidden under a View More section.
To update the active state for the menu, pass a link to the active
option using the set
method.
App Bridge does not automatically set the active state.
To clear the active link, pass undefined
as the active
option using the set
method.
Anchor to ReactReact
Anchor to Example CodeExample Code
In the following example, config
is a valid App Bridge configuration object. Learn more about configuring App Bridge.
When using the App Bridge React library, you need to wrap all of your App Bridge React code inside of a single App Bridge Provider
.
Anchor to PropsProps
Name | Type | Description | Required |
---|---|---|---|
navigationLinks | NavigationLink array | A list of all the links to appear in the navigation menu | Yes |
matcher | (link: NavigationLink, location: Location) => boolean | A function to provide custom logic for setting the active link. This function gets called with each link and the current location . If it returns true, the current link will become the active link. | No |
Name | Type | Description | Required |
---|---|---|---|
label | string | The text displayed in the navigation menu link | Yes |
destination | string | The path to navigate to when a user link follows a link | Yes |