Skip to main content

TitleBar Component

The Title Bar API allows you to populate a standardized title bar with button actions and navigation breadcrumbs.

The TitleBar component is available for use in your app. It configures the Title Bar in the Shopify admin.

The children of the title bar.

string

The title of the title bar. Can also be set via document.title.

Was this section helpful?

TitleBar

import {TitleBar} from '@shopify/app-bridge-react';

export function MyApp() {
return (
<TitleBar title="Products">
<button variant="primary">Primary action</button>
<button>Secondary action</button>
</TitleBar>
);
}

Preview

Title Bar with different options

Title Bar with buttons

Anchor to example-title-bar-with-grouped-secondary-buttonsTitle Bar with grouped secondary buttons

Title Bar with grouped secondary buttons

Was this section helpful?

Title Bar with breadcrumb

import {TitleBar} from '@shopify/app-bridge-react';

export function MyApp() {
return (
<TitleBar title="Products">
<button variant="breadcrumb">Home</button>
</TitleBar>
);
}