# Spinner: Inline

> Next to text, mark the spinner `aria-hidden` so the words do the talking. On its own, it announces its `label`.

Example: https://hextaui.com/docs/spinner/examples/inline
Component docs: https://hextaui.com/docs/spinner.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/spinner-inline.json
```

This adds `components/examples/spinner/inline.tsx` with the Spinner component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/spinner/inline.tsx"
import { Badge } from "@/components/ui/badge"
import { Spinner } from "@/components/ui/spinner"

export function SpinnerInline() {
  return (
    <div className="flex flex-col items-start gap-4 text-sm">
      <p className="flex items-center gap-2 text-muted-foreground">
        <Spinner size="sm" aria-hidden />
        Saving changes…
      </p>
      <Badge>
        <Spinner variant="ring" aria-hidden />
        Deploying
      </Badge>
      <p className="flex items-center gap-2 text-primary">
        <Spinner size="sm" label="Syncing" />
        Spinners use the text color around them.
      </p>
    </div>
  )
}
```

## Props in this example

### Spinner

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"ticks" \| "ring"` | `"ticks"` |  |
| `size` | `"sm" \| "default" \| "lg" \| "xl" \| null` | `"default"` | null leaves sizing to the parent. |
| `label` | `string` | `"Loading"` |  |

## More Spinner examples

- [Without flicker](https://hextaui.com/docs/spinner/examples/delayed.md)
- [Sizes](https://hextaui.com/docs/spinner/examples/sizes.md)
- [In buttons](https://hextaui.com/docs/spinner/examples/button.md)
