Base · Feedback
Progress
A horizontal bar that fills to show how much of a task is complete.
Props
import { Progress, ProgressLabel, ProgressValue } from "@/components/ui/progress"
<Progress value={60}>
<ProgressLabel>Importing shipments</ProgressLabel>
<ProgressValue />
</Progress>Overview
Progress shows how far along a measurable task is: an upload, an import, a multi-step setup. Pass a value to fill the bar, or null when the amount is not yet known. A label and a formatted value can sit above the bar.
When to use
- For operations that take more than a couple of seconds and report how far they are.
- To show completion of a goal or quota, such as “18 of 24 stops delivered”.
When not to use
- When the duration is unknown and short: use a Spinner.
- While content is loading into a known layout: use a Skeleton.
- For a value the user sets: use a Slider.
- For a metric that is not progress toward completion, such as capacity over time: use a chart.
Anatomy
Label (optional)
Names what is in progress.
Value (optional)
The formatted percentage, right-aligned on the label's row.
Track
The full-width muted bar, 4px tall.
Indicator
The filled portion, in the brand color.
Props
The contract every language implements. Names follow each language’s conventions (camelCase in React, snake_case in Rust).
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | 60 | Current progress between min and max. Pass null for an indeterminate state. |
| label | string | Importing shipments | Text above the bar. Passed as children of ProgressLabel. |
| min | number | 0 | Value at which the bar is empty. |
| max | number | 100 | Value at which the bar is full. |
States
- Progressing
- The indicator's width matches the value and animates when it changes.
- Complete
- The indicator fills the track. Replace the bar with a result soon after.
- Indeterminate
- Value is null. The amount is not announced; show a Spinner if this lasts.
Accessibility
Role: progressbar
- Not focusable; it has no keyboard interaction.
- Include a ProgressLabel, or set aria-label, so the bar has a name.
- aria-valuenow, aria-valuemin, aria-valuemax and a readable aria-valuetext are set from the props.
- For long tasks, announce completion separately, for example with a Toast.
Design tokens
Change any of these in Foundations and this component follows, in every language.
Platform notes
- HTML / JS
- Planned
- Not built in HTML / JS yet.
- React
- Stable
- Matches the contract with no platform differences.
- React Native
- Draft
- Nested Views with an animated width, exposed as a progressbar with accessibilityValue. The ProgressLabel text names the bar; null shows a sliding indeterminate bar.
- Swift (SwiftUI)
- Planned
- Not built in Swift yet.
- Godot
- Planned
- Not built in Godot yet.
- Vue
- Draft
- Usage snippet only; same props and behavior as the React component.
- Svelte
- Draft
- Usage snippet only (Svelte 5); same props and behavior as the React component.
- Solid
- Draft
- Usage snippet only; same props and behavior as the React component.