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 specify alignment of contents of divider.
Use to specify direction of divider.
A unique identifier for the component.
Use to create dividers with varying widths.
'start' | 'center' | 'end'
'inline' | 'block'
'extraSmall' | 'small' | 'base' | 'large' | 'extraLarge' | 'fill'