Progress
A visual indicator showing the completion status of a task.
Installation
pnpm dlx shadcn@latest add @columbus/progressUsage
import { Progress } from "@/components/ui/progress";
<Progress aria-label="Uploading files" value={40} />;With no children, Progress renders a track and indicator. If you pass children,
include ProgressTrack and ProgressIndicator yourself.
With label and value
ProgressLabel also names the progress bar for screen readers.
Export data
Formatted value
Pass a function to ProgressValue to format what it shows.
Upload
Indeterminate
Set value={null} when you can't tell how much is left.
<Progress aria-label="Connecting" value={null} />API reference
Progress wraps Base UI Progress. Each part accepts the props of its Base UI counterpart.
| Part | Base UI part |
|---|---|
Progress | Progress.Root |
ProgressLabel | Progress.Label |
ProgressTrack | Progress.Track |
ProgressIndicator | Progress.Indicator |
ProgressValue | Progress.Value |
Prop
Type