# ProgressBar
An unstyled progress bar component for displaying process completion status.
## Features
- Compound component API with sub-components: `Root`, `Track`, `Indicator`, `Label`, `Value`
- Normalizes `value` to a 0-100 percentage with configurable `min`/`max` bounds
- Determinate and indeterminate modes for known and unknown progress
- Configurable `formatter` function for custom display text
## Usage
```tsx
import { ProgressBar } from 'primereact/progressbar';
```
```tsx
```
## Behavior
### Polymorphic Rendering
Use `as` on any sub-component to change the rendered HTML element.
```tsx
```
Default elements: `Root`=`div`, `Track`=`div`, `Indicator`=`div`, `Label`=`div`, `Value`=`span`.
### Render Function Children
`Root` accepts a render function as children, providing access to the component instance.
```tsx
{(instance) => {instance.state.computedValue}%}
```
## Pass Through
## API
### ProgressBarRoot
| Attribute | Value |
| ------------ | --------------- |
| `data-scope` | `"progressbar"` |
| `data-part` | `"root"` |
| Label | Type | Description |
|:------|:------|:------|
| root | ProgressBarRootPassThroughType> | Used to pass attributes to the root's DOM element. |
| label | ProgressBarRootPassThroughType> | Used to pass attributes to the label's DOM element. |
| value | ProgressBarRootPassThroughType> | Used to pass attributes to the value's DOM element. |
| track | ProgressBarRootPassThroughType> | Used to pass attributes to the track's DOM element. |
| indicator | ProgressBarRootPassThroughType> | Used to pass attributes to the indicator's DOM element. |
### ProgressBarTrack
| Attribute | Value |
| ------------ | --------------- |
| `data-scope` | `"progressbar"` |
| `data-part` | `"track"` |
| Label | Type | Description |
|:------|:------|:------|
| root | ProgressBarTrackPassThroughType> | Used to pass attributes to the root's DOM element. |
### ProgressBarIndicator
| Attribute | Value |
| ------------ | --------------- |
| `data-scope` | `"progressbar"` |
| `data-part` | `"indicator"` |
| Label | Type | Description |
|:------|:------|:------|
| root | ProgressBarIndicatorPassThroughType> | Used to pass attributes to the root's DOM element. |
### ProgressBarLabel
| Attribute | Value |
| ------------ | --------------- |
| `data-scope` | `"progressbar"` |
| `data-part` | `"label"` |
| Label | Type | Description |
|:------|:------|:------|
| root | ProgressBarLabelPassThroughType> | Used to pass attributes to the root's DOM element. |
### ProgressBarValue
| Attribute | Value |
| ------------ | --------------- |
| `data-scope` | `"progressbar"` |
| `data-part` | `"value"` |
| Label | Type | Description |
|:------|:------|:------|
| root | ProgressBarValuePassThroughType> | Used to pass attributes to the root's DOM element. |
## Accessibility
### Screen Reader
ProgressBar components uses `progressbar` role along with `aria-valuemin`, `aria-valuemax` and `aria-valuenow` attributes. Value to describe the component can be defined using `aria-labelledby` and `aria-label` props.
```tsx
```
### Keyboard Support
Not applicable.