Skip to main content

Title bar

The admin title bar is a critical part of the Shopify Admin experience. It provides a way to display the current page title and actions for the user to take. This guide will show you how to work with the admin title bar using the App Bridge UI library.

Anchor to use the s-page componentUse the s-page component

The s-page component is available for use in your app. It configures the title bar in the Shopify admin in addition to managing the page layout. Note that you do not need the full App Bridge UI library to use this component. You can still use s-page (and its required child components) in your app.

Anchor to children
children
Anchor to heading
heading
string
Examples
<s-page heading="Page Title">
<s-button slot="primary-action" onclick="shopify.toast.show('Save')">Save</s-button>
<s-button slot="secondary-actions" onclick="shopify.toast.show('Close')">Close</s-button>
<s-button slot="secondary-actions" onclick="shopify.toast.show('Cancel')">Cancel</s-button>
</s-page>

Preview

Was this page helpful?