# Progress

> Horizontal and circular progress indicators with variants and indeterminate mode.

- Tier: free, MIT
- Category: Feedback
- Docs: https://ui.mlola.com/docs/components/progress

## Install

```bash
npx mlola-ui add progress
```

```tsx
import { Progress } from "@/components/ui/progress";
```

## Props with fixed values

| Component | Prop | Values | Default | Description |
| --- | --- | --- | --- | --- |
| Progress | `size` | `sm`, `md`, `lg` | `md` |  |
| Progress | `tone` | `primary`, `info`, `success`, `warning`, `danger` | `primary` |  |
| CircularProgress | `size` | `sm`, `md`, `lg` | `md` |  |
| CircularProgress | `tone` | `primary`, `info`, `success`, `warning`, `danger` | `primary` |  |

## Example

```tsx
import { Progress } from "@/components/ui/progress";

export default function Example() {
  return <Progress value={64} label="Uploading" showLabel />;
}
```

## The same markup without React

```html
<div class="ml-progress-root" data-tone="primary" data-size="md" data-state="determinate">
  <div class="ml-progress-label">
    <span>Uploading</span>
    <span class="ml-progress-value" aria-hidden="true">0%</span>
  </div>
  <div class="ml-progress-track" role="progressbar" aria-label="Uploading" aria-valuemin="0" aria-valuemax="100" aria-valuenow="64" aria-valuetext="64%">
    <div class="ml-progress-fill" aria-hidden="true" style="width:64%"></div>
  </div>
</div>
```
