Progress
How far a piece of work or a quota has gone.
import { Progress } from "@forgeron/ui";Uploading 4 files62%
Storage91%
Import done100%
import { Progress } from "@forgeron/ui";
export default function Default() {
return (
<div style={{ display: "grid", gap: 20, width: 320 }}>
<Progress label="Uploading 4 files" value={62} showValue />
<Progress label="Storage" value={9.1} max={10} showValue tone="danger" />
<Progress label="Import done" value={100} showValue tone="success" />
</div>
);
}Syncing with Odoo
import { Progress } from "@forgeron/ui";
export default function Indeterminate() {
return (
<div style={{ width: 320 }}>
<Progress label="Syncing with Odoo" />
</div>
);
}Onboarding, step 3 of 5
Days off used72%
import { Progress } from "@forgeron/ui";
export default function Segments() {
return (
<div style={{ display: "grid", gap: 20, width: 320 }}>
<Progress label="Onboarding, step 3 of 5" value={3} max={5} segments={5} />
<Progress label="Days off used" value={18} max={25} segments={25} showValue />
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Written above, said to screen readers. |
value | number | — | Absent: no known end. |
max | number | 100 | The end. |
showValue | boolean | — | Writes the percentage. |
tone | "accent" | "success" | "danger" | "accent" | Work, done, overrun. |
className | string | — | Extra classes. |