Skip to content

Spinner

A spinning circle for a wait of unknown length, announced to screen readers as "Loading…" or its label. It turns only for people who allow motion.

Language
Appearance

Inline

Loading…Refreshing the contact list

import { Spinner } from '@arbol-ai/ui';

<p className="text-muted-foreground flex items-center gap-2 text-sm">
  <Spinner />
  Refreshing the contact list
</p>

Sizes

Loading…Loading…Loading the campaign report
import { Spinner } from '@arbol-ai/ui';

<div className="flex items-center gap-4">
  <Spinner size="sm" />
  <Spinner />
  <Spinner className="text-primary" label="Loading the campaign report" size="lg" />
</div>

Source

The examples above are src/components/spinner/spinner.examples.tsx, which the library’s tests render too.

Type to search…

↑↓ navigate↵ selectEsc close