# Progress & Spinner

- **Section:** Components
- **URL:** https://refast.fastapicloud.dev/docs/components/progress
- **Markdown:** https://refast.fastapicloud.dev/docs/components/progress.md
- **Source:** https://github.com/idling-mind/refast-docs/blob/main/docs/pages/components/feedback/progress.py
- **Live examples:** the widgets on this page need a browser; open the URL above to try them.
- **Applies to:** refast 0.12.2

Three feedback primitives for communicating loading and progress states:
**Progress** (bar), **Spinner** (circular indicator), and **Skeleton** (content placeholder).

```python
from refast.components import Progress, Spinner, Skeleton
```

```python
Progress(
    value=40,
    show_value=False,
)
```

Use Spinner to indicate an ongoing operation.

sm

md

lg

Use Skeleton placeholders while content is loading.

## Progress Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `value` | `int \| None` | `0` | Current value (0–100). `None` = indeterminate |
| `max` | `int` | `100` | Maximum value |
| `label` | `str \| None` | `None` | Accessible label |
| `show_value` | `bool` | `False` | Show `value%` text inside bar |
| `foreground_color` | `str \| None` | `None` | Bar fill colour token |
| `striped` | `"static" \| "animated" \| None` | `None` | Striped pattern |

## Spinner Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | Spinner size |

## Skeleton Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `width` | `str \| int \| None` | `None` | CSS width (e.g. `"60%"`, `200`) |
| `height` | `str \| int \| None` | `None` | CSS height |
| `variant` | `"text" \| "circular" \| "rectangular"` | `"text"` | Shape |
| `circle` | `bool` | `False` | Render as a circle (override) |

## Examples

```python
# Determinate progress
Progress(value=75, show_value=True)

# Indeterminate (animated)
Progress(value=None, label="Loading…")

# Animated striped
Progress(value=60, striped="animated", foreground_color="primary")

# Spinner while loading
Spinner(size="lg")

# Skeleton card placeholder
Column(gap=2, children=[
    Skeleton(width=200, height=20),
    Skeleton(width="100%", height=14),
    Skeleton(width="80%", height=14),
])
```

---

Part of the Refast documentation: [all pages](https://refast.fastapicloud.dev/llms.txt), [everything on one page](https://refast.fastapicloud.dev/llms-full.txt), [search](https://refast.fastapicloud.dev/api/search?q=save_prop).
