Rebar UI

1.0

imitation

Progress

A linear progress bar.

ProgressLinear progress
Harbour rebrand84% done
Crew interviews33%
Empty
Half
Complete
Custom max
Tasks9 of 14

In context

File uploadOne bar per file, a count on top

Uploading 3 files

2 of 3
mark-stacked.svg100%
depot-fascia-final.pdf62%
van-livery-photos.zipWaiting

Thin usage bar

TokensHeight, radius, track and fill per status: --rebar-progress-*.

Props

PropTypeRequiredDefault
valuenumber | undefinedNo0
maxnumber | undefinedNo100
status"normal" | "error" | "success" | "warning" | undefinedNonormal
indeterminateboolean | undefinedNo—
size"sm" | "md" | "lg" | undefinedNomd
classNamestring | undefinedNo—
aria-labelstring | undefinedNo—

Accessibility

A real Radix role="progressbar" with aria-valuenow/aria-valuemax. Pass aria-label, and show the number as text next to it: the bar alone is not enough.

data-rebar-* attributes

data-rebar-component="progress" on the root; data-rebar-part="indicator" on the fill.

Migrating to Ant Design

AntD's Progress (type="line", its default) takes the same value as percent: a close, low-risk rename.

Warning status

status="warning" colours the bar in the warning tone, for a quota that is nearly used or a step that needs attention.

<Progress value={85} status="warning" aria-label="Storage" />