# Spinner (@salmonui/notifications/spinner)

> The Spinner component of @salmonui/notifications/spinner: A loading indicator. &lt;Spinner label="Loading orders" /> announces its label; &lt;Spinner loading={pending}>{content}&lt;/Spinner> covers content while loading is true.

Canonical: https://salmonui.dev/docs/reference/notifications/spinner/Spinner

```ts
import { Spinner } from '@salmonui/notifications/spinner';
```

Entry index: https://salmonui.dev/docs/reference/notifications/spinner (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/notifications/spinner.md).

## Reference

Kind: component

```ts
function Spinner({ label, size, loading, overlay, indicator, children, className, style, ref, ...rest }: SpinnerProps): import("react").JSX.Element | null;
```

A loading indicator. `<Spinner label="Loading orders" />` announces its
label; `<Spinner loading={pending}>{content}</Spinner>` covers content while
`loading` is true.

Props: [`SpinnerProps`](https://salmonui.dev/docs/reference/notifications/spinner/SpinnerProps) (its members are the props)
