robertlib

Progress Indicator

Component

About

A linear and circular progress indicator for showing how far a task has completed, including an indeterminate loading state for work of unknown length.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Progress Indicator to your project and fits it to your theme.

Code

How Progress Indicator is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

export default function CircularProgressDemo() {
  return (
    <div className="flex w-full max-w-sm items-center justify-center gap-6 p-6">
      <CircularProgress
        aria-label="Storage"
        showPercentage
        size="lg"
        value={73}
      />
      <CircularProgress
        aria-label="Checklist"
        color="success"
        size="lg"
        value={80}
      >
        4/5
      </CircularProgress>
      <CircularProgress aria-label="Loading" indeterminate size="lg" />
    </div>
  );
}

More by robertlib

View all
  • Timeline

    Timeline

    1
  • Avatar

    Avatar

  • Collapsible Content

    Collapsible Content

  • Form Description

    Form Description

  • Chip

    Chip

  • Switch

    Switch

  • Form Error

    Form Error

  • Select

    Select