Spinner
Communicate an ongoing task with a spinner and a short message.
Usage guide
#Represent short tasks or waiting with unknown progress. Consider Skeleton when the expected content structure is known.
Reserve a loading area
Place it in a container with a defined height.
inlinealso shows a backdrop mask over that area.Avoid flicker for short tasks
Set a delay in milliseconds with
delay.Clear it when finished
When the task ends, set
hidden = trueor remove the element.
Examples
#Feature examples
#Choose a feature from 6 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-spinner>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
number | 0 | Delay before showing, in milliseconds. | |
string | '' | Accessible help text accompanying the loading indicator. | |
boolean | false | Hide the component. | |
boolean | false | Apply a backdrop mask to the parent area. | |
'small' | 'medium' | 'large' | 'xlarge' | 'medium' | Component size. |
Slots
| Slot | Description |
|---|---|
| Component body or child items. |