Feedback

Progress

A native progress bar for tasks of known or unknown length.

Class nameTypeDescription
progressplf:progressComponentThe native progress bar
progress-neutralplf:progress-neutralColorNeutral color
progress-successplf:progress-successColorSuccess color
progress-warningplf:progress-warningColorWarning color
progress-errorplf:progress-errorColorError color
progress-infoplf:progress-infoColorInfo color

Default

The text inside <progress> is not its name: link a <label> with for or give the bar an aria-label.

40%
40%
20% 35% 50% 65% 80% 95%

Values

Leave out value when the length is unknown.

0%
0%
100%
100%
3 of 8
3 of 8
Processing…
Processing…
60%

Updating

Your script sets value, or calls removeAttribute('value') to make the bar indeterminate, and updates the value text with it.

React

Progress from @pelatform/react renders this native progress bar; leave value undefined to make it indeterminate.

Prop Values Default
color neutral, success, warning, error, info Primary

The other props are a native progress element’s, value, max, className and ref included.

CSS variables

Override on a root or on a single bar; they win over the color modifiers.

Variable Default
--plf-progress-bg Track: 20% of the primary color, or the color’s light background
--plf-progress-fill-bg Fill: --plf-color-primary, or the color
--plf-progress-height Space 2 (8px)
--plf-progress-radius Large radius (8px)
--plf-progress-duration 1.2s for one indeterminate pass
80%

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons