Progress

Displays an indicator showing the completion progress of a task.

Newdisplayfeedback
Loading preview...

Installation

Terminal
npx baseui-cn add progress

Usage

Code
import {
  Progress,
  ProgressTrack,
  ProgressIndicator,
  ProgressLabel,
  ProgressValue,
} from "@/components/ui/progress"
Code
<Progress value={65}>
  <ProgressLabel>Uploading</ProgressLabel>
  <ProgressValue />
</Progress>

Examples

Basic

A simple progress bar.

Loading preview...

With label and value

Show label and percentage.

Loading preview...

Indeterminate

Omit value for an indeterminate state.

Loading preview...

Determinate progress uses Base UI values and a width transition. Indeterminate progress remains labelled through Base UI; reduced motion renders its indicator without movement.

For manual installation, copy the stylesheet included with the component source and retain its import. CLI installation includes it automatically; website CSS is not required.

API Reference

See the Base UI Progress documentation for the full API reference, including all props, data attributes, and CSS classes.