Progress

Linear progress bar for determinate or indeterminate completion.

Installation

Install with the CLI, or copy the component source into your project.

Add progress (npm)

npx --yes -p github:itsvigneshv/default-file-ui#main df-ui add progress

Default

Determinate fill at the default thickness.

Sizes

sm and md bar thickness.

Indeterminate

Omit value for a sliding wait indicator.

Properties

Linear progress bar for determinate completion or an indeterminate wait. Track uses muted; the fill uses foreground.

Progress

PropTypeDefaultNotes
valuenumber-Completeness from 0 to 100. Omit for an indeterminate sliding indicator.
size"sm" | "md""md"Bar thickness.
aria-labelstring"Progress"Accessible name for the progressbar.
classNamestring-Additional styles.

Tokens

Theme defaults live on :root. Override these globally or on a local host.

TokenTypeDefaultNotes
--df-progress-height-smCSS lengthcalc(1 * var(--spacing-unit))sm bar thickness.
--df-progress-height-mdCSS lengthcalc(1.5 * var(--spacing-unit))md bar thickness.
--df-progress-durationCSS timevar(--df-duration-fast)Determinate width transition.
--df-progress-indeterminate-durationCSS timevar(--df-duration-progress-indeterminate)One indeterminate slide cycle.
--df-progress-indeterminate-widthCSS length40%Sliding indicator width while indeterminate.
--df-progress-indeterminate-travelCSS length350%End translate distance for the indeterminate slide.