UIComponentsReact
A bar that shows how far a task has come.
Built on the headless Progress.See its API in Docs
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/progress.jsonIt also adds utils. The app needs its setup first: Installation.
Usage
Pass value (0 to 100 by default, or set min and max); null makes it indeterminate. Progress renders its track and indicator itself after its children, so a ProgressLabel and a ProgressValue go inside it. Give it a label, with ProgressLabel or aria-label. The progressbar role and its values come from the headless Progress.
import {
Progress,
ProgressIndicator,
ProgressLabel,
ProgressTrack,
ProgressValue,
} from '@/components/ui/progress'Examples
API reference
The styled parts pass every prop to the headless part they wrap and add classes. The props, data attributes and keyboard are on Progress's API reference.