Spinner

The macOS spinning progress indicator: twelve spokes that turn a step at a time.

@cupertinoui/spinnerRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/spinner

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<Spinner />

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

Spinner

Set the size with size-*; the color follows the text color.

PropTypeDescription
classNamestringExtra classes, merged with the component's own.