Circular progress indicator

Provide feedback of progress to users while loading.

Props

variant
fullscreen | inline
Stretch across the full screen or use it inline
Defaults to inline.
size
small | large
Size of the progress indicator
Defaults to large.
message
string
Loading message displayed under the progress indicator
progress
number
Set the progress value. Setting this value will change the type from infinite to progress
Defaults to -1.
visible
boolean
Show/hide the page loader. This allows for fade transition to be applied in each transition.
Defaults to false.
testId
string
Sets a data-testid attribute for automated testing.
Examples
Examples show common usage patterns and implementation guidance.

Types

Don't use the fullscreen variant for quick operations. For anything under a second, use inline or Spinner. When part of a page is loading but the rest can show, use Skeleton to load progressively instead of blocking the whole view.
Pick the loading indicator that matches the context. Use CircularProgress with the inline variant for a section of the page that's loading. Use the fullscreen variant when the whole page is loading and the user can't do anything else yet. Use Skeleton when part of the page can show while the rest loads, so users see structure right away instead of an empty space.

Other

Use CircularProgress for page-level or blocking operations. Use Skeleton for content placeholders while loading.

Choose the right loading indicator for your context.

States

CircularProgress is hidden by default. Always set visible={true} to show it.

Content

Provide a message prop to explain what operation is in progress, like "Loading your application" or "Saving changes."
Don't place a full sentence in the indicator's label.
Keep loading messages short and concise.
All GoA Design System components are built to meet WCAG 2.2 AA standards. The following guidelines provide additional context for accessible implementation.

No accessibility-specific guidelines have been documented for this component yet.

View old component docs