ComponentServer-safe

Spinner

A compact accessible loading indicator that inherits the current color.

Installation

Preview

Syncing tokens

Usage

tsx
import { Spinner } from "@/components/ui/spinner"

<button disabled>
  <Spinner /> Publishing
</button>

API reference

PropTypeDefaultDescription
aria-labelstring"Loading"Accessible status label.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.