Spinner
The spinner component displays an animated indicator showing buyers that content or actions are loading. Use spinner to communicate ongoing processes like fetching data, processing requests, or waiting for operations to complete.
Spinners support multiple sizes and should be used for page or section loading states. Pair spinners with visible text to explain what is loading. For button loading states, use the loading property on the button component instead.
Spinner doesn't include built-in text. Pair it with layout and text components to describe the loading state.
Supported targets
- purchase.
checkout. actions. render-before - purchase.
checkout. block. render - purchase.
checkout. cart-line-item. render-after - purchase.
checkout. cart-line-list. render-after - purchase.
checkout. contact. render-after - purchase.
checkout. delivery-address. render-after - purchase.
checkout. delivery-address. render-before - purchase.
checkout. footer. render-after - purchase.
checkout. header. render-after - purchase.
checkout. payment-method-list. render-after - purchase.
checkout. payment-method-list. render-before - purchase.
checkout. pickup-location-list. render-after - purchase.
checkout. pickup-location-list. render-before - purchase.
checkout. pickup-location-option-item. render-after - purchase.
checkout. pickup-point-list. render-after - purchase.
checkout. pickup-point-list. render-before - purchase.
checkout. reductions. render-after - purchase.
checkout. reductions. render-before - purchase.
checkout. shipping-option-item. details. render - purchase.
checkout. shipping-option-item. render-after - purchase.
checkout. shipping-option-list. render-after - purchase.
checkout. shipping-option-list. render-before - purchase.
thank-you. announcement. render - purchase.
thank-you. block. render - purchase.
thank-you. cart-line-item. render-after - purchase.
thank-you. cart-line-list. render-after - purchase.
thank-you. customer-information. render-after - purchase.
thank-you. footer. render-after - purchase.
thank-you. header. render-after
Supported targets
- purchase.
checkout. actions. render-before - purchase.
checkout. block. render - purchase.
checkout. cart-line-item. render-after - purchase.
checkout. cart-line-list. render-after - purchase.
checkout. contact. render-after - purchase.
checkout. delivery-address. render-after - purchase.
checkout. delivery-address. render-before - purchase.
checkout. footer. render-after - purchase.
checkout. header. render-after - purchase.
checkout. payment-method-list. render-after - purchase.
checkout. payment-method-list. render-before - purchase.
checkout. pickup-location-list. render-after - purchase.
checkout. pickup-location-list. render-before - purchase.
checkout. pickup-location-option-item. render-after - purchase.
checkout. pickup-point-list. render-after - purchase.
checkout. pickup-point-list. render-before - purchase.
checkout. reductions. render-after - purchase.
checkout. reductions. render-before - purchase.
checkout. shipping-option-item. details. render - purchase.
checkout. shipping-option-item. render-after - purchase.
checkout. shipping-option-list. render-after - purchase.
checkout. shipping-option-list. render-before - purchase.
thank-you. announcement. render - purchase.
thank-you. block. render - purchase.
thank-you. cart-line-item. render-after - purchase.
thank-you. cart-line-list. render-after - purchase.
thank-you. customer-information. render-after - purchase.
thank-you. footer. render-after - purchase.
thank-you. header. render-after
Anchor to PropertiesProperties
Configure the following properties on the spinner component.
- Anchor to accessibilityLabelaccessibilityLabelaccessibilityLabelstringstring
A label that describes the purpose of the spinner for assistive technologies like screen readers. Provide an
when there is no visible text that conveys a loading state.- Anchor to idididstringstring
A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting.
- Anchor to sizesizesize'small' | 'large' | 'base' | 'small-100' | 'large-100''small' | 'large' | 'base' | 'small-100' | 'large-100'Default: 'base'Default: 'base'
The size of the spinner icon.
base: The default size, suitable for most use cases.small: A compact size for secondary loading states.small-100: The smallest size for tight spaces or inline indicators.large: A larger size for more prominent loading states.large-100: The largest size for full-page or section-level loading indicators.
Anchor to ExamplesExamples
Anchor to Display a basic spinnerDisplay a basic spinner
Indicate an ongoing loading operation. This example renders a default s-spinner to signal that content is being loaded.
Display a basic spinner

html
Anchor to Pair a spinner with loading copyPair a spinner with loading copy
Pair a large spinner with visible loading text. This example sets size and accessibilityLabel and places helper text beside the spinner.
html
Anchor to Frame a spinner in a subdued boxFrame a spinner in a subdued box
Place a spinner inside a styled content area. This example wraps the spinner and text in an s-box with a subdued background as a loading placeholder.
html
Anchor to Best practicesBest practices
- Always provide an accessibility label: Set
accessibilityLabelso screen readers can announce what's loading. - Use spinners for page or section loading, not buttons: For button loading states, use the button's built-in
loadingproperty instead. - Pair with descriptive text: Spinners alone don't explain what's happening. Add nearby text that describes the operation in progress.
- Choose the right size for the context: Use smaller spinners for inline or compact layouts, and larger spinners for full-section loading states.