Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.
Heading
The heading component controls the visual style of headings. Use heading to introduce major sections like order details, profile settings, or account preferences.
Unlike HTML headings, you don't explicitly specify the heading level. Nest headings within HeadingGroup to control the document outline for assistive technologies.
Supported targets
- Customer
Account::Kitchen Sink - customer-account.
footer. render-after - customer-account.
order-index. announcement. render - customer-account.
order-index. block. render - customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render - customer-account.
page. render - customer-account.
profile. addresses. render-after - customer-account.
profile. announcement. render - customer-account.
profile. block. render - customer-account.
profile. company-details. render-after - customer-account.
profile. company-location-addresses. render-after - customer-account.
profile. company-location-payment. render-after - customer-account.
profile. company-location-staff. render-after - customer-account.
profile. payment. render-after
Supported targets
- Customer
Account::Kitchen Sink - customer-account.
footer. render-after - customer-account.
order-index. announcement. render - customer-account.
order-index. block. render - customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render - customer-account.
page. render - customer-account.
profile. addresses. render-after - customer-account.
profile. announcement. render - customer-account.
profile. block. render - customer-account.
profile. company-details. render-after - customer-account.
profile. company-location-addresses. render-after - customer-account.
profile. company-location-payment. render-after - customer-account.
profile. company-location-staff. render-after - customer-account.
profile. payment. render-after
Anchor to PropertiesProperties
Configure the following properties on the Heading component.
- Anchor to accessibilityRoleaccessibilityRoleaccessibilityRole'presentation''presentation'
Sets the semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help buyers navigate the page.
- Anchor to idididstringstring
Unique identifier. Typically used to make the heading a target that another component can refer to in order to provide an alternative accessibility label.
- Anchor to inlineAlignmentinlineAlignmentinlineAlignmentInlineAlignmentInlineAlignment
Align text along the main axis.
- Anchor to levellevellevelLevelLevel
The visual level of the heading. When not set, the heading will use its “automatic” heading level, which is determined by the level of nesting within ancestor
s. No matter what value you provide here, the semantic level (e.g., how the heading contributes to the document outline) is determined exclusively by the “automatic” heading level.
InlineAlignment
Controls how content is aligned along the inline axis (horizontal in standard writing modes). - `'start'`: Aligns content to the inline start of the container. - `'center'`: Centers content along the inline axis. - `'end'`: Aligns content to the inline end of the container.
'start' | 'center' | 'end'Level
1 | 2 | 3 | 4Anchor to ExamplesExamples
Anchor to Display a section headingDisplay a section heading
Introduce a major section with a styled heading. This example renders a heading component with default styling.Display a section heading

Display a section heading
React
import {
reactExtension,
Heading,
} from '@shopify/ui-extensions-react/customer-account';
export default reactExtension(
'customer-account.page.render',
() => <Extension />,
);
function Extension() {
return <Heading>Store name</Heading>;
}JS
import {extension, Heading} from '@shopify/ui-extensions/customer-account';
export default extension('customer-account.page.render', (root) => {
const heading = root.createComponent(Heading, undefined, 'Store name');
root.appendChild(heading);
});Anchor to Best practicesBest practices
- Nest within HeadingGroup: Always wrap headings in a HeadingGroup to maintain proper document outline for screen readers.
- Keep headings concise: Use short, scannable text that describes the section content.
- Don't skip visual levels: Maintain consistent heading hierarchy for readability.