A divider separates content and represents a thematic break between elements.
import {render, Divider} from '@shopify/checkout-ui-extensions-react';
render('Checkout::Dynamic::Render', () => );
function Extension() {
return ;
}
import {extend, Divider} from '@shopify/checkout-ui-extensions';
extend('Checkout::Dynamic::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'