Components
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.
Loading preview...
"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>
)
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...