---
title: Spinner
description: A loading indicator for asynchronous operations.
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add spinner
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import { Spinner } from "@/components/ui/spinner"
```
```tsx
```
## API Reference
### Spinner
A spinning SVG indicator for loading states.
| Prop | Type | Default |
| ------ | ------------------------------- | ------- |
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | `"sm"` |
## Examples
### Sizes
### Input Group
### Button