Spinner

An indicator that something is loading.

Installation

  1. Add the registryOnce per project
  2. Add spinner

Usage

Use size-* and text-* classes to resize and recolor it. Pass an aria-label to say what's loading.

Examples

Colors

In buttons

Loading button

Disable the button with focusableWhenDisabled while it works, so focus stays put, and point aria-labelledby at its label so the changing text names it.

In context

SyncingLoading projects…

Props