A divider separates content and represents a thematic break between elements.
import {
reactExtension,
Divider,
} from '@shopify/ui-extensions-react/checkout';
export default reactExtension(
'purchase.checkout.block.render',
() => <Extension />,
);
function Extension() {
return <Divider />;
}
import {extension, Divider} from '@shopify/ui-extensions/checkout';
export default extension('purchase.checkout.block.render', (root) => {
const divider = root.createComponent(Divider);
root.appendChild(divider);
});
Use to create dividers with varying widths.
Use to specify direction of divider.
Use to specify alignment of contents of divider.
A unique identifier for the component.
'extraSmall' | 'small' | 'base' | 'large' | 'extraLarge' | 'fill'
'inline' | 'block'
'start' | 'center' | 'end'