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 buyers 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.
Supported targets
- purchase.
checkout. actions. render-before - purchase.
checkout. block. render - purchase.
checkout. cart-line-item. render-after - purchase.
checkout. cart-line-list. render-after - purchase.
checkout. contact. render-after - purchase.
checkout. delivery-address. render-after - purchase.
checkout. delivery-address. render-before - purchase.
checkout. footer. render-after - purchase.
checkout. header. render-after - purchase.
checkout. payment-method-list. render-after - purchase.
checkout. payment-method-list. render-before - purchase.
checkout. pickup-location-list. render-after - purchase.
checkout. pickup-location-list. render-before - purchase.
checkout. pickup-location-option-item. render-after - purchase.
checkout. pickup-point-list. render-after - purchase.
checkout. pickup-point-list. render-before - purchase.
checkout. reductions. render-after - purchase.
checkout. reductions. render-before - purchase.
checkout. shipping-option-item. details. render - purchase.
checkout. shipping-option-item. render-after - purchase.
checkout. shipping-option-list. render-after - purchase.
checkout. shipping-option-list. render-before - purchase.
thank-you. announcement. render - purchase.
thank-you. block. render - purchase.
thank-you. cart-line-item. render-after - purchase.
thank-you. cart-line-list. render-after - purchase.
thank-you. customer-information. render-after - purchase.
thank-you. footer. render-after - purchase.
thank-you. header. render-after
Supported targets
- purchase.
checkout. actions. render-before - purchase.
checkout. block. render - purchase.
checkout. cart-line-item. render-after - purchase.
checkout. cart-line-list. render-after - purchase.
checkout. contact. render-after - purchase.
checkout. delivery-address. render-after - purchase.
checkout. delivery-address. render-before - purchase.
checkout. footer. render-after - purchase.
checkout. header. render-after - purchase.
checkout. payment-method-list. render-after - purchase.
checkout. payment-method-list. render-before - purchase.
checkout. pickup-location-list. render-after - purchase.
checkout. pickup-location-list. render-before - purchase.
checkout. pickup-location-option-item. render-after - purchase.
checkout. pickup-point-list. render-after - purchase.
checkout. pickup-point-list. render-before - purchase.
checkout. reductions. render-after - purchase.
checkout. reductions. render-before - purchase.
checkout. shipping-option-item. details. render - purchase.
checkout. shipping-option-item. render-after - purchase.
checkout. shipping-option-list. render-after - purchase.
checkout. shipping-option-list. render-before - purchase.
thank-you. announcement. render - purchase.
thank-you. block. render - purchase.
thank-you. cart-line-item. render-after - purchase.
thank-you. cart-line-list. render-after - purchase.
thank-you. customer-information. render-after - purchase.
thank-you. footer. render-after - purchase.
thank-you. header. 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 section headingAdd a section heading
Add a section heading to organize content visually. This example displays an s-heading element with "Contact" as the heading text.
Add a section heading

html
Anchor to Use presentation role for visual-only headingsUse presentation role for visual-only headings
Suppress heading semantics when a parent region already exposes the heading level. This example sets accessibilityRole="presentation" so the element reads as a visual title only.
html
Anchor to Nest headings with sectionsNest headings with sections
Let heading levels adjust automatically based on section nesting depth. This example nests s-heading elements inside s-section containers so each level increments without setting level manually.
html
Anchor to Best practicesBest practices
- Keep headings short: Use concise, scannable titles so buyers can quickly orient themselves in the checkout flow.
- Prefer section headings: Default to the
headingproperty ons-sectionand only uses-headingwhen you need a custom layout. - Avoid skipping levels arbitrarily: Screen readers use heading levels to build a navigable document outline. Jumping from h2 to h4 creates gaps that make it harder for buyers using assistive technology to navigate the page.