Progress

PreviousNext

Displays an indicator showing the completion progress of a task.

Docs
bunduicomponent

Preview

Loading preview…
examples/components/progress/01/page.tsx
"use client";

import * as React from "react";

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

export default 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-[60%]" />;
}

Installation

npx shadcn@latest add @bundui/progress

Usage

import { Progress } from "@/components/progress"
<Progress />