Skip to main content

Divider

A divider separates content and represents a thematic break between elements.

Extract<, 'small' | 'base' | 'large' | 'extraLarge'>
Default: 'small'

Use to create dividers with varying widths.

Default: 'inline'

Use to specify direction of divider.

Default: 'center'

Use to specify alignment of contents of divider.

string

A unique identifier for the component.

Was this section helpful?

Basic Divider

import {render, Divider} from '@shopify/checkout-ui-extensions-react';

render('Checkout::Dynamic::Render', () => <Extension />);

function Extension() {
return <Divider />;
}

Preview