Progress

Determinate progress bar on Base UI with track, indicator, label and value parts. The root renders the track automatically, so a label and value can sit above the bar.

Open the preview in a new tab
import {
  Progress,
  ProgressIndicator,
  ProgressLabel,
  ProgressTrack,
  ProgressValue,
} from "@/components/ui/progress"

/** Progress at 72 percent, its label and value above the track. */
export default function ProgressDemo() {
  return (
    <Progress value={72} className="w-full max-w-sm">
      <div className="flex items-baseline justify-between">
        <ProgressLabel>Installing blocks</ProgressLabel>
        <ProgressValue />
      </div>
      <ProgressTrack>
        <ProgressIndicator />
      </ProgressTrack>
    </Progress>
  )
}

Installation

pnpm dlx shadcn add @01orbital/progress
npx shadcn add @01orbital/progress
yarn shadcn add @01orbital/progress
bunx --bun shadcn add @01orbital/progress

Add the @01orbital registry to components.json once (install guide), then run the command.

It lands at components/ui/progress.tsx, as source you own and edit.

Dependencies

npm: @base-ui/react, cn. The CLI installs them for you.

No other registry pieces.

On this page