# Spinner

> A loading indicator drawn by the renderer.

A loading indicator: an arc that turns once every 800 ms, rotated natively by `style.spin`.

- Category: [Actions & feedback](https://tarve.dev/docs.md#actions)
- Import: `import { Spinner } from "@tarve/core";`
- Props type: `SpinnerProps`
- Source: [packages/core/src/extra-controls.ts:42](https://github.com/omarcosr/tarve/blob/main/packages/core/src/extra-controls.ts#L42)

## Usage

```tsx title="Spinner.tsx"
import { Row, Spinner, Text } from "@tarve/core";

<Row gap={8} align="center">
  <Spinner size={18} label="Syncing" />
  <Text>Syncing your files…</Text>
</Row>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string` | `"Loading"` |  |
| `size` | `number` | `18` |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [Progress](https://tarve.dev/docs/components/Progress.md) · Next: [Skeleton](https://tarve.dev/docs/components/Skeleton.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Spinner · Index for agents: https://tarve.dev/llms.txt
