Skip to content

Progress indicators

Expressive

Linear and circular indicators, determinate or indeterminate, flat or wavy.

import { LinearProgressIndicator, CircularProgressIndicator } from '@windmorph/react';

Purpose

Progress indicators show the status of an ongoing process. Use a determinate indicator (value 0–1) when you know how far along the work is, and an indeterminate one when you do not. Both come in a flat and an M3 Expressive wavy form.

LinearProgressIndicator is a horizontal track; CircularProgressIndicator is a ring. For short indeterminate waits (under 5 seconds) the LoadingIndicator is recommended. When a process's progress becomes known, give an indeterminate indicator its value: the moving line eases into it.

thickness and trackThickness set the strokes (4px by default); 8px is the spec's thick configuration, and the indicator grows to fit. Inside a button, remove the track with track={false} and colour the indicator like the label with classNames.indicator set to stroke-current.

A linear indicator is 240px wide by default and never wider than its container. To span an element, as M3 recommends, give it w-full and leave at least 4px between each end and the element's edge (for example px-1 on the container). Don't place it in anything narrower than 40px.

When not to use

For a short indeterminate wait (under 5 seconds) prefer the Loading indicator.

See also