Spinner

Loading indicators in three flavors — ring, dots and bars — that inherit the current text color.

Feedback

Playground

Tweak the props, the preview and the code follow.

Props
<Spinner size="lg" />

Installation

npx @plumsydev/plum-ui add spinner

Usage

import { Spinner } from "@/components/ui/spinner"
<Spinner variant="bars" />

Examples

Sizes & color

Size tokens, or any size-* and text-* class.

Inline

Building acme-web
Queued

API Reference

Spinner

PropTypeDefault
variant

Animation style.

"ring" | "dots" | "bars""ring"
size

Size token (14, 16 or 24px).

"sm" | "default" | "lg""default"

Notes

  • Rendered with role="status" and an accessible label. Override aria-label to describe what's loading.