Progress
A progress bar with role="progressbar" and full ARIA value wiring.
Preview
Upload progress
Complete
Storage quota
CPU usage
Usage
import { Progress } from "anexui";
<Progress value={60} />
Copy codeWith label and value display
<Progress value={75} label="Upload progress" showValue />
Copy codeVariants
<Progress value={80} variant="default" />
<Progress value={80} variant="success" />
<Progress value={40} variant="warning" />
<Progress value={25} variant="error" />
Copy codeCustom max
<Progress value={3} max={5} label="Step 3 of 5" showValue />
Indeterminate (animated)
<Progress value={0} label="Loading…" />
Copy codeProps
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | — | Required. Current progress value |
| max | number | 100 | Maximum value |
| label | string | — | Accessible label for screen readers |
| showValue | boolean | false | Renders value/max text next to the bar |
| variant | "default" \| "success" \| "warning" \| "error" | "default" | Colour scheme |
All standard HTML <div> attributes are accepted (except children).
Accessibility
role="progressbar"applied automaticallyaria-valuenow,aria-valuemin,aria-valuemaxset from propsaria-labelset from thelabelprop