Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Shadcn Progress for React and Tailwind

Displays task progress with a linear indicator.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/progress.json

Anatomy

Progress
├── ProgressLabel
├── ProgressTrack
├── ProgressRange
├── ProgressValue
├── ProgressView
└── ProgressCircle
    ├── ProgressCircleTrack
    └── ProgressCircleRange

Usage

import React from "react";
import { Progress } from "@/components/ui/progress";
const ProgressDemo = () => {
  const [progress, setProgress] = React.useState(13);

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

  return <Progress className="w-full max-w-64" value={progress} />;
};

Demos

Controlled

Indeterminate

Orientation Horizontal

Orientation Vertical

With Label

API Reference

Progress

div

PropType
AttributeType

ProgressTrack

div

PropType
AttributeType

ProgressRange

div

PropType
AttributeType

ProgressValue

span

PropType
AttributeType

useProgress

PropType