Hero Ui

Progress Bar

Component 1

About

A HeroUI progress bar for showing completion of a task — loading, uploads, multi-step flows. Built on react-aria with an accessible label and formatted output. Supports accent/success/warning/danger colors, sm/md/lg sizes, an indeterminate animated state, and an optional label.

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

Code

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

Usage.tsx

"use client"

import { ProgressBar } from "@/components/ui/heroui-progress-bar"
import { Label } from "@heroui/react"

export default function Colors() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <div className="flex w-64 flex-col gap-6">
        <ProgressBar aria-label="Downloading" color="accent" value={60}>
          <Label>Downloading</Label>
          <ProgressBar.Output />
          <ProgressBar.Track>
            <ProgressBar.Fill />
          </ProgressBar.Track>
        </ProgressBar>
        <ProgressBar aria-label="Syncing" color="success" value={100}>
          <Label>Syncing</Label>
          <ProgressBar.Output />
          <ProgressBar.Track>
            <ProgressBar.Fill />
          </ProgressBar.Track>
        </ProgressBar>
        <ProgressBar aria-label="Uploading" color="warning" value={45}>
          <Label>Uploading</Label>
          <ProgressBar.Output />
          <ProgressBar.Track>
            <ProgressBar.Fill />
          </ProgressBar.Track>
        </ProgressBar>
        <ProgressBar aria-label="Processing" color="danger" value={25}>
          <Label>Processing</Label>
          <ProgressBar.Output />
          <ProgressBar.Track>
            <ProgressBar.Fill />
          </ProgressBar.Track>
        </ProgressBar>
      </div>
    </div>
  )
}

Dependencies

More by Hero Ui

View all
  • DatePicker

    DatePicker

    466
  • Chip

    Chip

    440
  •  The Pagination

    The Pagination

    361
  • HeroUI Color Picker

    HeroUI Color Picker

    105
  • Skeleton

    Skeleton

    104
  • HeroUI Table

    HeroUI Table

    99
  • HeroUI Disclosure Group

    HeroUI Disclosure Group

    94
  • HeroUI AlertDialog

    HeroUI AlertDialog

    79