Core Components

Progress

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

x
import * as React from "react"

import { Progress } from "@/components/ui/progress"

export function ProgressDemo() {
  const [progress, setProgress] = React.useState(13)

  React.useEffect(() => {
    const timer = setTimeout(() => setProgress(66), 500)
    return () => clearTimeout(timer)
  }, [])

  return <Progress value={progress} className="w-3/5" />
}

Installation

Install with the shadcn CLI. An AI assistant with the shadcn MCP server configured can also install components automatically when you ask for them (see Getting Started).

npx shadcn@latest add progress

Documentation

For all options, variants and the full API, see the shadcn/ui docs and the Base UI API reference.

Last updated on

On this page