Progress
Shows how far along a task is, or that it's under way when you can't tell. Bars for files, steps and pages; circles for compact spots. A small gap and a stop dot mark what's left, so it reads without color.
Install
npx shadcn@latest add @nelumbo/progressLinear
Pass value for determinate progress. Leave it out when you can't measure the wait: two bars sweep across the track instead. Drag the slider to see the indicator, the gap and the track move together.
Wavy
shape="wavy" turns the indicator into a travelling wave: livelier, for longer waits and moments you want to feel alive, like a sync or an install. The track stays flat.
Circular
The same, as a ring. Set size and thickness in px; put a value or an icon inside as children.
In context
Each bar is named by its file with aria-labelledby, so a screen reader hears “Launch film.mp4, 40%”.
Uploads
Usage
import { CircularProgress, Progress } from "@/components/ui/progress"<Progress value={40} aria-label="Uploading" /><Progress aria-label="Loading" /> // indeterminate<Progress shape="wavy" size="thick" value={60} aria-label="Installing" /><CircularProgress value={72} size={72} thickness={6} aria-label="Storage used"> <span>72%</span></CircularProgress>Props
| Prop | Type | Default | Name every indicator with aria-label or aria-labelledby. |
|---|---|---|---|
value | number | null | Leave out or pass null for indeterminate | |
max | number | 100 | |
shape | "flat" | "wavy" | "flat" | Wavy: a travelling wave on the indicator |
color | "auto" | "neutral" | "brand" | "auto" | Black (white in dark mode), or the accent |
Progress size | "default" | "thick" | "default" | 4px or 8px |
CircularProgress size | number | 40 | Diameter in px |
CircularProgress thickness | number | 4 | Stroke width in px |
getValueLabel | (value, max) => string | What screen readers hear; defaults to a percentage |