Spinner

Spinners are used to notify merchants that their action is being processed. For loading states, spinners should only be used for content that can’t be represented with skeleton loading components, like for data charts.

Examples

Use to notify merchants that their requested action is being processed.

Drag to resize example

Props

accessibilityLabel
string
Accessible label for the spinner
color
"white" | "teal" | "inkLightest"
Color of spinner
size
"small" | "large"
Size of spinner

Best practices

The spinner component should:

  • Notify the merchant that their request has been received and the action will soon complete.
  • Be used in conjunction with skeleton loading to represent non-typographic content. For example, line graphs on the Merchant analytics dashboard.
  • Not be used to give feedback for an entire page load.
  • White can only be used with small spinners on actionable components like buttons.

Content guidelines

Accessibility label

Spinner accessibility label should:

  • Accurately explain the state of the requested action. For example, “Loading”, “Submitting”, “Processing.”
  • Use as few words to describe the state as possible.