- Docs
- Components
- Feedback
Progress
A task advancing: an upload, an import. Unknown while its end is unknown; its tone says how it ended.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<div role="progressbar">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Playground
Every prop, live, and the code it takes.
Value
Tone
import { Progress } from "@qeetrix/react";
<Progress label="Uploading invoices.csv" value={40} showValue />02
A task
value, from min to max (0 and 100 by default); label above it, and showValue at its end.
<Progress label="Uploading invoices.csv" showValue value={percent} />03
States
value={null} while the end is unknown: a segment slides, and fades under reduced motion. tone marks how it ended.
<Progress label="Importing customers" value={null} />
<Progress label="Uploaded invoices.csv" showValue value={100} tone="success" />
<Progress label="Couldn't upload payroll-oct.csv" showValue value={72} tone="danger" />04
A count
max and format: the value as a count, written and read for the locale.
<Progress label="Records imported" showValue value={1360} max={2000} format={{ maximumFractionDigits: 0 }} />05
In a card
No visible label: aria-label names it, and the count beside it is a status.
<Progress aria-label="Users imported" value={1360} max={2000} />
<Text role="status" size="sm" tone="subtle">1,360 of 2,000 users</Text>