---
title: "Progress"
description: "A bar that fills as a task moves on, such as an upload or an import. It shows a label and the percent, or moves back and forth when the size is not known."
url: https://gelatinui.com/components/progress
markdown_url: https://gelatinui.com/components/progress.md
access: free
install: "npx shadcn@latest add @gelatin-ui/progress"
registry_item: https://gelatinui.com/r/progress.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Progress

> A bar that fills as a task moves on, such as an upload or an import. It shows a label and the percent, or moves back and forth when the size is not known.

Page: https://gelatinui.com/components/progress

## When to use it

Best for: A task that takes time, such as an upload or an import, as a bar or a row of segments.

- Use it for a task that moves toward done: an upload, an import, a long save.
- Use `value={null}` while the size of the task is not known.
- Use `tone` when the state has a meaning, and say the same state in the label or value.
- Use `variant` `ticks`, `segments`, `steps`, or `dots` on `ProgressTrack` for a row of cells.

## When not to use it

- For a value at rest, such as disk use, use a [Meter](https://gelatinui.com/components/meter.md).
- For a wait inside a button, use `loading` on the [Button](https://gelatinui.com/components/button.md).
- For a task in a small round shape, use a [Circular Progress](https://gelatinui.com/components/circular-progress.md).

## Notes for agents

- A `format` formats the raw value. `{ style: "percent" }` with `value={24}` prints "2,400%". Leave out `format`, or pass a fraction with `max={1}`.
- A bar needs a `ProgressIndicator` inside `ProgressTrack`. A segmented track draws its own cells and does not render children.
- Give it a `ProgressLabel`, or `aria-label` on the root.
- The indeterminate text from Base UI is English. In another language, pass `getAriaValueText`.
- `thickness` works on the bar only. `size` and `rounded` set the segmented look.
- With no `tone`, the fill stays ink when complete. Let the value text say "Done".

## Anatomy

```text
Progress
├─ ProgressLabel (0..n)
├─ ProgressValue (0..n)
├─ ProgressTrack (0..n)
└─ ProgressIndicator (0..n)
```

## API reference

### Progress

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `glow` | `boolean` |  | A soft halo in the fill color (`glow`, `@gelatin-ui/glow`). Default: `false`. |
| `tone` | `TrackTone` | "neutral" | The fill color: `default` (`primary`), or a status for a task whose state has a meaning: `success` done, `warning` slow or nearly full, `info` a neutral step, `destructive` failed. Color is never the only signal: say the state in the label or value. |

Also takes every prop of Base UI `Progress.Root`: https://base-ui.com/react/components/progress

### ProgressLabel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

### ProgressValue

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Progress.Value`: https://base-ui.com/react/components/progress

### ProgressTrack

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `thickness` | `"thick" \| "thin"` | "thin" |  |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "lg" \| "sm" \| "xs"` |  |  |
| `className` | `string` |  |  |
| `variant` | `"bar" \| "dots" \| "segments" \| "steps" \| "ticks"` | "bar" | `bar` (default): one fill. The others draw a row of segments. |
| `segments` | `number` |  | The segment count of a segmented look. Default: ticks 30, segments 10, steps 5, dots 20. |

### ProgressIndicator

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Progress | `progress` |  |  |  |
| ProgressLabel | `progress-label` |  |  |  |
| ProgressValue | `progress-value` | `data-complete` |  |  |
| ProgressTrack | `progress-track` |  |  |  |
| ProgressIndicator | `progress-indicator` | `data-indeterminate` | `--progress-slide` |  |

## Usage

Put the label, the value, and the track inside `Progress`. Pass `value={null}` when the size of the task is not known.

```tsx title="upload-progress.tsx"
import {
  Progress,
  ProgressIndicator,
  ProgressLabel,
  ProgressTrack,
  ProgressValue,
} from "@/components/ui/progress";

export function UploadProgress() {
  return (
    <Progress value={40} locale="en-US">
      <ProgressLabel>Uploading files</ProgressLabel>
      <ProgressValue />
      <ProgressTrack>
        <ProgressIndicator />
      </ProgressTrack>
    </Progress>
  );
}
```

## Compose

Build it with:

- [Dropzone](https://gelatinui.com/components/dropzone.md): Takes the files by drop or by a press.
- [Attachment](https://gelatinui.com/components/attachment.md): Shows each file with its state.
- [Files Illustration 01](https://gelatinui.com/components/files-illustration-01.md): Fills the empty drop area.

Rules:

- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.
- No layout jump (`no-layout-jump`): When a state change adds, removes, or resizes content, reserve its space or animate its size, so nothing below it jumps.
- Real content (`real-content`): Fill the UI with content of the real product (real names, amounts, dates, and states), never lorem text or "Item 1".
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.

Patterns: `gelatin://patterns/file-upload`

## Add it

```bash
npx shadcn@latest add @gelatin-ui/progress
```

It adds 14 registry items: 10 files, 2679 lines, and the npm packages `@base-ui/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Circular Progress](https://gelatinui.com/components/circular-progress.md)
- [Meter](https://gelatinui.com/components/meter.md)
- [Dropzone](https://gelatinui.com/components/dropzone.md)
- [Spinner](https://gelatinui.com/components/spinner.md)

## Accessibility

It is a Base UI Progress with the `progressbar` role. `ProgressLabel` names it; with no label, pass `aria-label`.

The indeterminate text from Base UI is English. In another language, pass `getAriaValueText`.

Pass `locale` on a server-rendered page, so the digits match after hydration.

## Motion

| Part | Motion |
| --- | --- |
| Value | none · the fill takes each new width at once |
