Ballmac UI home

Spinner

A compact loading indicator with three sizes, an accessible label, and reduced-motion behavior.

Saving changes
Your workspace will update shortly.
Saving changes

Installation

$ pnpm dlx shadcn@latest add @ballmac/spinner

Usage

import { Spinner } from "@/components/ballmac/spinner"

The full example is in the Code tab above.

Examples

States and variants

Loading small itemLoading itemLoading large item

API reference

PropTypeDefault
size

Size of the loading indicator.

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

Text announced by assistive technology.

string—

Also accepts the standard attributes of its root element.

Use with AI

A compact loading indicator with three sizes, an accessible label, and reduced-motion behavior. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Spinner (@ballmac/spinner) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Show a short in-progress action
  • Place inside a disabled submit button

Not for

  • Use progress for a measurable operation

Registry JSON: https://ui.ballmac.com/r/spinner.json

Credits

Based on shadcn/ui Spinner, adapted by Ballmac. Free to use in personal and commercial projects.