Progress Bar

A progress bar shows the progression of a task.

() => clearTimeout(timer)

Installation

npx shadcn@latest add @dotui/progress-bar

Usage

Use progress bars to show the progression of a system operation or task.

import { ProgressBar, ProgressBarControl } from "@/components/ui/progress-bar";
<ProgressBar value={60}>
	<ProgressBarControl />
</ProgressBar>

Playground

Use the controls below to experiment with different progress bar props and see the live preview and code update.

Loading...
<ProgressBar value={60}>
  <Label>Loading...</Label>
  <ProgressBarTrack />
</ProgressBar>

Examples

sm
md
lg
primary
success
accent
danger
warning
Loading...
Loading75%
Feeding…30 of 100 dogs
Sending…¥60

API Reference

ProgressBar

Progress bars show either determinate or indeterminate progress of an operation over time.

PropType
ReactNode | function
boolean
DOMRenderFunction<"div", ProgressBarRenderProps>
number
ReactNode
NumberFormatOptions

ProgressBarControl

The visual track for the progress bar.

Supports all div attributes.

ProgressBarOutput

Missing description.

Supports all span attributes.

Last updated on 5/22/2026