Page
The page component provides a styled page layout within your app, including breadcrumbs, page actions, and content areas with automatic spacing.
Use page when you need a complete page layout with Polaris styling. For apps that need to set the Shopify admin's native title bar (title, breadcrumbs, actions) without a styled page layout, use the title bar App Bridge component instead.
Anchor to PropertiesProperties
Use as the outer wrapper of a page.
- Anchor to inlineSizeinlineSizeinlineSize"small" | "base" | "large""small" | "base" | "large"Default: 'base'Default: 'base'requiredrequired
The inline size of the page
basecorresponds to a set default inline sizelargefull width with whitespace
- Anchor to headingheadingheadingstringstringrequiredrequired
The main page heading
Anchor to SlotsSlots
The page component supports slots for additional content placement within the component. Learn more about using slots.
- Anchor to asideasideasideHTMLElementHTMLElement
The content to display in the aside section of the page.
This slot is only rendered when
is "base".- HTMLElementHTMLElement
The navigation back actions for the page.
Only accepts link components.
- Anchor to childrenchildrenchildrenHTMLElementHTMLElement
The main page content displayed within the page component, which serves as the primary container for the page's information and interface elements.
- Anchor to primary-actionprimary-actionprimary-actionHTMLElementHTMLElement
The primary action for the page.
Only accepts a single button component with a
variantofprimary.- Anchor to secondary-actionssecondary-actionssecondary-actionsHTMLElementHTMLElement
The secondary actions for the page.
Only accepts button group and button components with a
variantofsecondaryorauto.
Anchor to ExamplesExamples
Anchor to Organize content with sectionsOrganize content with sections
Create a consistent page structure with automatic spacing. This example combines a heading with organized content sections.
Preview
html
Anchor to Use small width for formsUse small width for forms
Create a focused layout for forms and simple workflows. This example uses the inlineSize="small" setting for narrower content.
Preview
html
Anchor to Use large width for dashboardsUse large width for dashboards
Display data-rich content like dashboards or analytics. This example uses the inlineSize="large" setting for wider layouts.
Preview
html
Help merchants understand where they are in your app. This example adds a breadcrumb link back to a parent page.
Preview
html
Anchor to Add page actionsAdd page actions
Provide quick access to common operations from the page header. This example adds primary and secondary action buttons.
Preview
html
Anchor to Edit page with all slotsEdit page with all slots
Combine all page features for complex editing workflows. This example integrates breadcrumbs, actions, form content, and an aside panel.
Preview
html
Anchor to Best practicesBest practices
- Always provide a title that describes the current page.
- Include breadcrumbs when the page is part of a flow.
- Include page actions in the header only if they are relevant to the entire page.
- Include no more than one primary action and 3 secondary actions per page.
- Don't include any actions at the bottom of the page.
Anchor to LimitationsLimitations
- The
inlineSizeproperty only acceptssmall,base(default), orlargevalues. - Breadcrumb actions only support link and button components.
- The
asideslot is only visible wheninlineSizeis set tobase.