Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Components

Loading indicator

use: deployed
A loading indicator provides a clue to ongoing activity when the site needs to load additional content.

Example

Web

View va-loading-indicator in Storybook

Mobile

View va_mobile__loading-indicator–with-text in Storybook

Usage

When to use the Loading indicator

  • When the wait time for a process, such as loading a page, is unknown.

When to consider something else

Content considerations

  • Keep messages clear and concise: We follow a simple content pattern for loading indicators, which consists of the following elements in this order:

    1. A present participle verb of the action that is happening
    2. An object that is being acted upon
    3. An ellipsis
  • Use present participle verbs (ending with “-ing”): Start each loading indicator with the verb of the action that is happening. Consider what the system is actually doing. Remember that the loading indicator is supposed to inform the user what is happening while they’re waiting. The system isn’t always loading something. Sometimes it’s sending something. Other times it’s saving something.

  • Describe the object being acted upon: Follow the verb with the object that is being acted upon. For example, if the system is saving something, describe (in 1 or 2 words) what is being saved. If applicable, make the object personal to the user by using a possessive pronoun (your) instead of an article (a, the).

  • End with an ellipsis: End each loading indicator with an ellipsis (3 periods). Do not use unnecessary words, such as “please” or “wait”.

Examples of loading indicator messages:

  • Saving your draft…
  • Loading your application…
  • Submitting your file…

Accessibility considerations

  • On the web, the loading indicator component is used to notify user’s that the page content is loading. W3C WAI-ARIA aria-live="polite", aria-label and aria-valuetext are used to ensure screen reader users are also provided the same information.
  • In the mobile app, use the equivalent accessibility hints and labels in React Native.

Code usage

Attributes and Properties

Property Attribute Type Default Description enableAnalytics enable-analytics boolean false Analytics tracking function(s) will be called. Form components are disabled by default due to PII/PHI concerns. label label string 'Loading' An aria label message message string The message visible on screen when loading setFocus set-focus boolean false Set to true if the loading indicator should capture focus

Events

Name Description component-library-analytics The event used to track usage of the component.
Edit this page in GitHub (Permissions required)
Last updated: May 06, 2025