# Loading
> Loading spinners and animation indicators
Source: https://shellui.dev/docs/v0.4/components/data-display/loading
The Loading component provides multiple animated indicators to communicate that content is being loaded or an operation is in progress. v0.4 rebuilds it with 23 variants, from the classic `spinner` to `logo`, `snake`, `wave`, `typing` and `shimmer`. The animations ship inside the component, so they also work with the NuGet package, and they follow the current text colour.
## Installation
```bash
shellui add loading
```
## Basic Usage
```razor
```
## All variants
```razor
@foreach (var variant in variants)
{
@variant
}
@code {
private readonly string[] variants =
[
"spinner", "dots", "typing", "wave", "pulse", "ring", "dual-ring", "ripple",
"bars", "bars-vertical", "bars-pulse", "grid", "snake", "rows", "columns", "sequence",
"twinkle", "logo", "orbit", "activity", "chase", "progress", "shimmer",
];
}
```
## Variants
### Spinner (Default)
A classic rotating spinner:
```razor
```
### Dots
Three pulsing dots:
```razor
```
### Pulse
A pulsing circle:
```razor
```
### Ring
An animated ring:
```razor
```
### Bars
Animated vertical bars:
```razor
```
### Grid
A pulsing grid pattern:
```razor
```
### Orbit
An orbiting animation:
```razor
```
### Logo
The ShellUI mark, drawn dot by dot. `shellui init` uses the same animation in the terminal.
```razor
```
### Shimmer and typing
`shimmer` sweeps a highlight across its `Text` ("Loading..." by default), and `typing` is the three-dot indicator used in chat UIs. `Label` sets the name screen readers announce.
```razor
```
## Sizes
Control the loading indicator size:
```razor
```
## Full Page Loading
Overlay a loading indicator over the full viewport:
```razor
@if (isLoading)
{
}
```
## Inline Loading
Use loading indicators inline with content:
```razor
@code {
private bool isSaving = false;
}
```
## Skeleton vs Loading
Use `Skeleton` for content placeholders and `Loading` for active operations:
```razor
@* Content placeholder *@
@* Active operation *@
```
## API Reference
| Property | Type | Default | Description |
|----------|------|---------|-------------|
| `Variant` | `string` | `"spinner"` | Animation style: `spinner`, `dots`, `typing`, `wave`, `pulse`, `ring`, `dual-ring`, `ripple`, `bars`, `bars-vertical`, `bars-pulse`, `grid`, `snake`, `rows`, `columns`, `sequence`, `twinkle`, `logo`, `orbit`, `activity`, `chase`, `progress`, `shimmer` |
| `Size` | `string` | `"default"` | Indicator size: `sm`, `default`, `lg` |
| `Label` | `string` | `"Loading"` | Accessible name announced by screen readers |
| `Text` | `string?` | `null` | Text for the `shimmer` variant |
| `Class` | `string?` | `null` | Additional CSS classes |
## Accessibility
The Loading component includes:
- `role="status"` for screen reader announcements
- `aria-label="Loading"` by default; change it with `Label`
- Slows down under `prefers-reduced-motion`
- Hidden from screen readers when not visible