# Progress

Progress as a bar or a ring, for work you can measure or with an honestly unknown total.

- **Use it for**: A measured amount of work done, or an explicitly unknown total; variant="ring" for small square spaces.
- **Not for**: Activity without a measure. Try [LoadingIndicator](https://unseenui.com/components/loading-indicator/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { Progress } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<Progress variant="bar" label="Sample steps completed" value={completedSteps} max={10} valueText={`${completedSteps} of 10 sample steps`} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `label` (required) | `string` |  |
| `labelVisibility` | `"hidden" \| "visible"` | Hidden keeps the label for assistive technology when the title is already on screen. |
| `max` | `number` | Finite, positive measurement maximum. |
| `showReading` | `boolean` | Hide the visible reading when the host prints it elsewhere. |
| `size` | `"default" \| "sm" \| "lg"` | Ring size. |
| `value` | `number \| null` | Measured value only. |
| `valueText` | `string` | Human-readable measurement, e.g. |
| `variant` | `"bar" \| "ring"` | A bar, or a ring for compact places such as a card corner. |

## Keyboard

The native progress element is named but is not an extra tab stop. Nearby controls remain available while work advances.

## Works with

[Alert](https://unseenui.com/components/alert/), [EmptyState](https://unseenui.com/components/empty-state/), [Toast](https://unseenui.com/components/toast/), [LoadingIndicator](https://unseenui.com/components/loading-indicator/), [Skeleton](https://unseenui.com/components/skeleton/), [StatusBadge](https://unseenui.com/components/status-badge/)

Page: https://unseenui.com/components/progress/
