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.
Divider
The Divider component creates clear visual separation between elements in the interface. Use Divider to separate distinct content groups in forms, settings panels, lists, or page sections, helping customers scan and understand content organization.
Divider supports both horizontal and vertical orientations, along with different visual sizes for varying levels of emphasis. For more structured content grouping with headings, use a Card instead.
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 Divider component.
- Anchor to alignmentalignmentalignmentAlignmentAlignmentDefault: 'center'Default: 'center'
The alignment of the divider's content within its container.
- Anchor to directiondirectiondirectionDirectionDirectionDefault: 'inline'Default: 'inline'
The orientation of the divider, using logical properties.
inline: A horizontal divider that separates content stacked vertically.block: A vertical divider that separates content arranged horizontally.
- Anchor to idididstringstring
A unique identifier for the component. Use this to target the component in scripts or stylesheets, or to distinguish it from other instances of the same component.
- Anchor to sizesizesize'small' | 'large' | 'base' | 'extraLarge''small' | 'large' | 'base' | 'extraLarge'Default: 'small'Default: 'small'
The thickness of the divider line.
small: A thin, subtle line.base: The standard divider thickness.large: A thicker line for stronger visual separation.: The thickest available line.
Alignment
Controls how content is aligned along the cross axis. - `'start'`: Aligns content to the start of the container. - `'center'`: Centers content within the container. - `'end'`: Aligns content to the end of the container.
'start' | 'center' | 'end'Direction
The axis along which content is arranged, using [logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values). - `inline`: The horizontal axis (in horizontal writing modes). - `block`: The vertical axis (in horizontal writing modes).
'inline' | 'block'Anchor to ExamplesExamples
Anchor to Separate content sectionsSeparate content sections
Place a divider between content blocks to create a clear visual break. This example shows a horizontal divider at its default size.
Separate content sections

Separate content sections
React
import {
reactExtension,
Divider,
} from '@shopify/ui-extensions-react/customer-account';
export default reactExtension(
'customer-account.page.render',
() => <Extension />,
);
function Extension() {
return <Divider />;
}JS
import {extension, Divider} from '@shopify/ui-extensions/customer-account';
export default extension('customer-account.page.render', (root) => {
const divider = root.createComponent(Divider);
root.appendChild(divider);
});Anchor to Best practicesBest practices
- Use sparingly: Too many dividers can make a page feel cluttered. Rely on spacing and grouping first, and add dividers only where boundaries aren't clear from layout alone.
- Match direction to layout: Use horizontal dividers in vertical layouts and vertical dividers in horizontal layouts for natural visual flow.
- Prefer structured grouping for labeled sections: If content groups have headings, use a Card for better semantic meaning.
Anchor to LimitationsLimitations
- Dividers are purely decorative. They don't carry semantic meaning and aren't announced by assistive technologies.
- Custom colors and thicknesses beyond the predefined sizes aren't supported.
- Vertical dividers require a parent with a defined height to render visibly.