When a system process is happening in the background we should give visual feedback to the user.

Before interaction
Contents
<button aria-live="polite" class="govuk-button">
<span>Save and continue</span>
</button>
<Button isLoading={false}>Save and continue</Button>
After interaction
Contents
<button aria-live="polite" class="govuk-button">
<span>Loading...</span>
<span class="govuk-button__icon" aria-hidden="true">
<svg />
</span>
</button>
<Button isLoading={true}>Loading</Button>
When to use this pattern
Use the loading indicator to illustrate an unspecified wait time of a process when the process is likely to take longer than 1-2 seconds.
Research on this pattern
This pattern hasn't gone through usablity testing. Contact a member of the UX team if you're planning to utilise this pattern.
