# Spinner

Shows that something is loading.

> Every page: https://constella.aayush.cv/llms.txt

## Installation

```bash
npx shadcn@latest add @constella/spinner
```

## Usage

```tsx
import { Spinner } from "@/components/primitives/spinner";
```

```tsx
<Spinner />
```

## Button

Render it inside a [Button](https://constella.aayush.cv/docs/components/button/index.md) with `data-icon="inline-start"`.

```tsx
<Button disabled>
  <Spinner data-icon="inline-start" />
  Saving
</Button>
```

## API Reference

### Spinner

Takes every prop of `<output>`, plus:

| Prop         | Type               | Default     |
| ------------ | ------------------ | ----------- |
| `aria-label` | `string`           | `"Loading"` |
| `sx`         | `Sx`, applied last |             |
