# Progress Bar

> Linear progress with optional label and value.

Registry name: `progress-bar`. HTML docs: https://ui.anuragroy.dev/component/progress-bar.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/progress-bar.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/progress-bar.json`.

Registry JSON: https://ui.anuragroy.dev/r/progress-bar.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/progress-bar.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import {
  ProgressBar,
  ProgressBarTrack
} from "@/components/ui/progress-bar"
```

## Usage

```tsx
import { ProgressBar, ProgressBarTrack } from "@/components/ui/progress-bar"

export function Example() {
  return (
    <ProgressBar value={60}>
      <ProgressBarTrack />
    </ProgressBar>
  )
}
```

## API

### ProgressBar

Base UI Progress. `value={null}` is indeterminate.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | number \| null | — |  |
| `max` | number | — |  |

## Notes

- `ProgressBarLabel` and `ProgressBarValue` are available for captions.

## See also

- [HTML page](https://ui.anuragroy.dev/component/progress-bar): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/progress-bar.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
