Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Progress

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

progress.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/progress.json

It 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

Default

A bar that moves from 13 to 66 percent.

Its preview and code are at the top of the page.

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.