Progress v0.1.0 Feedback

Determinate or indeterminate progress bar with full progressbar semantics.

import { Progress } from "latticeui-react";

Examples

Determinate

Uploading photos64%
Show code
<Progress label="Uploading photos" value={64} />

Indeterminate

Omit value when total work is unknown.

Processing
Show code
<Progress label="Processing" />

Anatomy

These data-part attributes are a versioned public API - style and test against them; they will not change in a minor release.

PartElementStable selector
rootdiv[data-scope="progress"][data-part="root"]
labeldiv[data-scope="progress"][data-part="label"]
valueTextspan[data-scope="progress"][data-part="valueText"]
trackdiv[role=progressbar][data-scope="progress"][data-part="track"]
filldiv[data-scope="progress"][data-part="fill"]

Props

PropTypeDefaultDescription
labelstring
valuenumberOmit for indeterminate.
maxnumber100
showValueTextbooleantrue

Accessibility

Roles: progressbar

Styling

Override styles by targeting the stable selectors below from any unlayered CSS - it always beats the library's @layer latticeui styles, no !important needed.

[data-scope="progress"][data-part="track"] {
  /* your overrides */
}

State attributes: data-indeterminate