Skip to content
Eskais UI

Feedback

Spinner

An SVG spinner in currentColor, sized like an icon (sm, md, lg). Decorative by default; with a label it becomes a role=status region. Pulses instead of spinning under reduced motion.

Example

Syncing projectsSyncing

Installation

npx shadcn@latest add @eskais/spinner
npm packagesclass-variance-authority@0.7.1

Usage

Import
import { Spinner, spinnerVariants } from "@/components/ui/spinner"

API reference

Spinner

Takes Omit<ComponentProps<"svg">, "children"> &.

Other exports

spinnerVariantstype SpinnerProps

Accessibility

  • Decorative by default; pass label and it becomes role=status with a screen-reader-only label.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.