Beta Feature
Let us know so we can improve!
tile/spinner
Shows an indeterminate circular loading indicator. Configure the accessible label and an optional size.
| Name | Required | Lightning Type | Default | Description |
|---|---|---|---|---|
| label | Yes | lightning__textType | The accessible text that identifies the operation that’s in progress. | |
| size | No | lightning__textType | md | The 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.
Note
Provide a label describing what’s loading so the operation is announced to assistive technology.
1{
2 "definition": "tile/spinner",
3 "attributes": { "label": "Loading results" }
4}To pair a spinner with status text, place both in a row.
1{
2 "definition": "tile/row",
3 "attributes": { "gap": "sm" },
4 "children": [
5 {
6 "definition": "tile/spinner",
7 "attributes": { "size": "sm", "label": "Saving changes" }
8 },
9 {
10 "definition": "tile/text",
11 "attributes": { "text": "Saving changes…" }
12 }
13 ]
14}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.
label such as “Loading results” or “Processing payment”.xs or sm) next to buttons or form fields, and a larger size (lg or xl) for page- or section-level loading.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.
Beta Feature