# Spinner

A rotating diamond with a clear loading announcement.

- Family: Foundation, imported from `mizu-ui` or `mizu-ui/ui`
- Docs: https://mizu.user64bit.world/components/spinner
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/ui/Spinner.tsx

## Usage

```tsx
import { Spinner } from "mizu-ui";

export function Example() {
  return <Spinner label="Loading artwork" size={18} />;
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/spinner
```

## Props

- `size`: `number` (default `14`). Side in pixels.
- `label`: `string` (default `"Loading"`). Accessible loading name.
- `tone`: `"accent" | "paper" | "muted" | "current"` (default `"accent"`). Color token, or current for the surrounding text color, as inside a button.

## Accessibility

A labelled status; reduced motion stops rotation.

## Motion

Linear rotation; static under reduced motion.
