Component Porchlight CSS

Progress

A linear progress indicator - determinate or indeterminate, with tone variants.

52 components 51 stable 1 experimental

Command

Search Porchlight

Progress

The .c-progress component renders a linear progress bar. Determinate mode shows a fill proportional to a value; indeterminate shows an animated sweep.

Semantic HTML

<!-- Determinate -->
<div class="c-progress">
  <div class="c-progress__bar" style="inline-size: 65%;"></div>
</div>

<!-- Indeterminate -->
<div class="c-progress" data-indeterminate>
  <div class="c-progress__bar"></div>
</div>

Class contract

SelectorRole
.c-progressThe track (rounded bar).
.c-progress__barThe fill (animates width).
[data-tone]success, warning, danger (default = accent).
[data-indeterminate]Animated sweep mode.
--c-progress-heightTrack height token (default 0.375rem).