Spinner

tile/spinner

Shows an indeterminate circular loading indicator. Configure the accessible label and an optional size.

NameRequiredLightning TypeDefaultDescription
labelYeslightning__textTypeThe accessible text that identifies the operation that’s in progress.
sizeNolightning__textTypemdThe size of the spinner. Valid values include xs for extra small, sm for small, md for medium (default), lg for large, or xl for extra large.

Use a spinner to show an indeterminate loading indicator for an operation whose duration or completion can’t be measured, such as a network request, a page load, or server processing. The spinner renders a circular animation without a percentage.

For measurable progress such as uploads or multi-step flows, use tile/progress instead.

Provide a label describing what’s loading so the operation is announced to assistive technology.

To pair a spinner with status text, place both in a row.

Use these size values to set the spinner’s relative scale. The default is md.

  • xs: Extra small spinner for inline or compact contexts such as inside a button or a form field.
  • sm: Small spinner for inline or alongside short status text.
  • md (default): Medium spinner for standard, in-content loading.
  • lg: Large spinner for prominent or section-level loading.
  • xl: Extra large spinner for page-level loading indicators.

Consider these guidelines when working with spinners.

  • Set a concise, action-oriented label such as “Loading results” or “Processing payment”.
  • Use a small spinner (xs or sm) next to buttons or form fields, and a larger size (lg or xl) for page- or section-level loading.
  • Avoid placing multiple spinners in the same view — a single loading indicator reads more clearly than several competing animations.

Note any limitations that apply to this component.

No known limitations for tile/spinner in Slackbot.

No known limitations for tile/spinner in ChatGPT.

size: xl renders the same as size: lg. SLDS provides four spinner sizes only.