Progress Bar
A sleek and responsive bar that visually tracks task completion, loading states, or step-based processes in real time. It provides clear progress indication.
Installation
Install the component via the CLI in one command.
npx shadcn@latest add @intentui/progress-bar
Manual installation
Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.
npm install tailwind-merge
Anatomy
import { Description, Label } from "@/components/ui/field"
import {
ProgressBar,
ProgressBarHeader,
ProgressBarTrack,
ProgressBarValue,
} from "@/components/ui/progress-bar"<ProgressBar value={value}>
<ProgressBarHeader>
<Label>Loading…</Label>
<ProgressBarValue />
</ProgressBarHeader>
<ProgressBarTrack />
<Description>This is an example of a progress bar indicating 50% completion.</Description>
</ProgressBar>Examples
Indeterminate
An indeterminate progress bar is a type of progress indicator that does not show a specific amount of progress or percentage complete.
Component API
ProgressBar
The ProgressBar component displays determinate or indeterminate progress.
| Prop | Type | Default |
|---|---|---|
className | string | - |
ProgressBarHeader
The ProgressBarHeader component groups progress label and value content.
| Prop | Type | Default |
|---|---|---|
className | string | - |
ProgressBarTrack
The ProgressBarTrack component renders the progress track.
| Prop | Type | Default |
|---|---|---|
className | string | - |
ProgressBarValue
The ProgressBarValue component displays the formatted progress value.
| Prop | Type | Default |
|---|---|---|
className | string | - |
See the React Aria for the full API reference.
Unlock the full power ofIntent UI Design
Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.