# Spinner

An indicator that can be used to show a loading state.

Section: Components / Feedback
Page: https://ui.heyramzi.com/components/spinner
Import path: `@heyramzi/ui/shadcn/spinner`

## Import

```ts
import { Spinner } from "@heyramzi/ui/shadcn/spinner";
```

## Demo

```svelte
<script lang="ts">
	import { Spinner } from "@heyramzi/ui/shadcn/spinner";
</script>

<div class="flex w-full max-w-xs flex-col gap-4 [--radius:1rem]">
	<div class="bg-muted/50 flex items-center gap-3 rounded-md border p-3 text-sm">
		<Spinner />
		<span class="line-clamp-1 flex-1 font-medium">Processing payment...</span>
		<span class="tabular-nums">$100.00</span>
	</div>
</div>
```

## API

| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| `class` | `string` |  |  |
| `role` | `string` | `"status"` |  |
| `name` |  |  |  |
| `color` |  |  |  |
| `stroke` |  |  |  |
| `aria-label` | `string` | `"Loading"` |  |

Every prop of `SVGAttributes<SVGSVGElement>` from `svelte/elements`.
