Spinner is used to notify buyers that their action is being processed. The Spinner is usually used when sending or receiving data from a server.
import {render, Spinner} from '@shopify/checkout-ui-extensions-react';
render('Checkout::Dynamic::Render', () => );
function Extension() {
return ;
}
import {extend, Spinner} from '@shopify/checkout-ui-extensions';
extend('Checkout::Dynamic::Render', (root) => {
const spinner = root.createComponent(Spinner);
root.appendChild(spinner);
});
Adjusts the size of the icon.
Sets the appearance (color) of the icon.
A label to use for the Spinner that will be used for buyers using assistive technologies like screen readers. If will also be used to replace the animated loading indicator when buyers prefers reduced motion. If not included, it will use the loading indicator for all buyers.
A unique identifier for the component.
'extraSmall' | 'small' | 'base' | 'large' | 'extraLarge' | 'fill'
'accent' | 'interactive' | 'subdued' | 'info' | 'success' | 'warning' | 'critical' | 'monochrome'