# Progress

Determinate or indeterminate progress seam for jobs, uploads, and background work.

[All components](https://rickylabs.github.io/netscript/design-system/components/) · [Theme builder](https://rickylabs.github.io/netscript/create/) · [Implementation source](https://github.com/rickylabs/netscript/blob/main/packages/fresh-ui/registry/components/ui/progress.tsx)

## Live preview

[Open live progress preview](https://rickylabs.github.io/netscript/assets/fresh-ui/preview/?component=progress&theme=studio-utility)

## Install

```bash
netscript ui:add progress
```

## Usage and examples

The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.

```tsx
import { useState } from 'preact/hooks';
import { Progress } from '@app/components/ui/progress.tsx';

export function Example() {
  const [value, setValue] = useState('standard');
  const [open, setOpen] = useState(false);
  const [notice, report] = useState('');
  return (<><div><Progress value={64} label="Upload progress" /></div><p role="status">{notice}</p></>);
}
```

## Props

Generated from native `deno doc --json --private` over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.

| Owner | Prop | Type | Optional | Description |
| --- | --- | --- | --- | --- |
| `ProgressProps` | `class` | `string` | Yes |  |
| `ProgressProps` | `indeterminate` | `boolean` | Yes |  |
| `ProgressProps` | `label` | `string` | Yes |  |
| `ProgressProps` | `max` | `number` | Yes |  |
| `ProgressProps` | `size` | `ProgressSize` | Yes |  |
| `ProgressProps` | `value` | `number` | Yes |  |
| `ProgressProps` | `variant` | `ProgressVariant` | Yes |  |

```typescript
type ProgressVariant = "primary" | "secondary" | "success" | "warning" | "destructive"
type ProgressSize = "sm" | "md" | "lg"
ProgressProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "class" | "children">
```

## Keyboard

Presentation component; no component-specific keyboard interactions.

## Tokens

Semantic contract roles: `material/track`, `radius/badge`, `text/fg`, `text/muted`.

CSS custom properties referenced directly: `--ns-border-hover`, `--ns-destructive`, `--ns-ease-normal`, `--ns-marker`, `--ns-material-track`, `--ns-primary`, `--ns-radius-control`, `--ns-radius-full`, `--ns-secondary`, `--ns-secondary-text`, `--ns-success`, `--ns-warning`.

## Contract and compatibility

Accessibility pattern: native progressbar

- Native DOM attributes pass through where the implementation accepts them.

Design contract values marked planned are not implementation props. The props above describe what ships today.
