Spinner
A rotating loading indicator.
It spins only while it's on screen and IsRunning is true. Buttons have their own spinner: set IsLoading on a Button instead.
Installation
bash
shellui-native add spinner
Platforms: MAUI · Avalonia. Also installs icon.
Usage
Sizes
<ui:Spinner Size="Sm" />
<ui:Spinner />
<ui:Spinner Size="Lg" Token="MutedForeground" /><ui:Spinner Size="Sm" />
<ui:Spinner />
<ui:Spinner Size="Lg" Token="MutedForeground" />Not available on yet
API
| Property | Type | Default | Description |
|---|---|---|---|
Size |
SpinnerSize |
Default |
Size preset. One of Sm, Default, Lg. |
Token |
ShellToken |
Foreground |
Theme colour token the icon is drawn with. |
IsRunning |
bool |
true |
Spins while true; hidden while false. |