Skip to content

Spinner

Spinner is a CSS-only animated loading indicator. It is used internally by Button when loading is true, but can be used standalone as well.

Basic usage

Tailwind v4
vue
<Spinner />

Sizes

sm
md
lg
Tailwind v4
vue
<Spinner size="sm" />   <!-- 16px -->
<Spinner size="md" />   <!-- 20px — default -->
<Spinner size="lg" />   <!-- 24px -->
SizeDimensionsBorder width
sm16×16px2px
md20×20px2px
lg24×24px3px

In a loading overlay

Tailwind v4
vue
<div v-if="loading" class="flex items-center justify-center py-12">
  <Spinner size="lg" />
</div>

Accessibility

The spinner renders a <span> with role="status" and aria-label="Loading".

Props

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Spinner dimensions

Private — Jetpack Labs internal use only