Spinner

An animated, indeterminate loading indicator — a rotating 270° arc that tells users something is happening behind the scenes.

Install

Examples

Size

Two sizes — l (48px) and s (24px).

Type

type sets the colour; inverse is tuned for dark surfaces.

Guidelines

Usage

loading states of unknown duration. For a determinate task with a known percentage, use a Progress Bar.

Do

  • Use a spinner only when you can’t measure progress.
  • Set a meaningful label describing what’s loading.
  • Place it where the result will appear so the wait has context.

Don’t

  • Don’t use a spinner for a measurable task — use a Progress Bar.
  • Don’t show several spinners at once; one clear loading region is enough.
  • Don’t leave a spinner running indefinitely — resolve to content or an error.

Accessibility

Properties

Related