# Spinner
> A rotating loading indicator.
Source: https://native.shellui.dev/docs/components/feedback/spinner
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
**MAUI**
```xml
```
**Avalonia**
```xml
```
[Live preview](https://native.shellui.dev/preview/index.html?c=spinner-sizes)
## 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. |