Heading
The heading component renders hierarchical titles to communicate the structure and organization of page content. Use heading to create section titles and content headers that help users understand information hierarchy and navigate content.
Heading levels adjust automatically based on nesting within parent section components, ensuring meaningful and accessible page outlines without manual level management.
Heading levels (h2, h3, h4) are determined automatically by nesting depth within s-section components — you can't set a specific heading level directly.
Supported targets
- 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.
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'heading' | 'none' | 'presentation''heading' | 'none' | 'presentation'Default: 'heading'Default: 'heading'
The semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help users navigate the page.
presentation: Removes semantic meaning, making the element purely decorative and ignored by screen readers.none: Completely hides the element and its content from assistive technologies.
- Anchor to idididstringstring
A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting.
Anchor to ExamplesExamples
Anchor to Add a basic headingAdd a basic heading
Create a heading for a content section. This example shows the basic heading component with default styling.
Add a basic heading

html
Anchor to Set an accessibility roleSet an accessibility role
Control how assistive technologies interpret the heading. This example sets accessibilityRole="presentation" to render the heading as a visual title without adding it to the document outline.
html
Anchor to Create a heading hierarchy with nested sectionsCreate a heading hierarchy with nested sections
Nest headings inside section components to automatically assign appropriate heading levels (h2, h3, h4). This example shows how the heading level increments with each nested section, creating proper document structure for screen readers.
html
Anchor to Best practicesBest practices
- Keep headings short: Use concise, scannable titles so customers can quickly orient themselves in the customer account.
- Prefer section headings: Default to the
headingproperty ons-sectionand only uses-headingwhen you need a custom layout. - Write clear, descriptive headings: Headings should clearly describe the section they introduce. Avoid vague headings like "Details" when "Order details" or "Profile settings" would be clearer.