Skip to main content
  1. Docs
  2. Components
  3. Feedback

Spinner

A short wait with no known end: a ring that turns. Read as a status, in the app's language.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span role="status">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A wait of a second or two: a search, a passkey prompt.
  • A small region loading.
Not for
  • Content still on its way, with a known shapeSkeleton
  • A long task with a known endProgress
  • A button's own waitButton

02

Anatomy

  1. 1spinner<span role="status">The ring, named "Loading", or by label.

03

Do and don't

Shape over spin
DoA known layout loading: skeletons hold its place.
Don'tA spinner where a table will be: the page jumps when it lands.
Say what's loading
DoWords beside it, where the wait is long enough to read.
Don'tA spinner alone, for minutes.

04

Sizes

Fixed, at every density.

SizePixelsBeside
sm14Small text
md16Body text, a field
lg20A title
xl24A region

05

Content

  • label says what's loading: "Loading users".
  • Words beside it end in an ellipsis: Saving…
  • After a few seconds, say more, or show Progress.
Next — SpinnerAPI