# LoadingIndicator

Shows that something is happening, without pretending to know how far along it is.

- **Use it for**: Showing that something is happening without inventing progress.
- **Not for**: Holding the space of content that is loading. Try [Skeleton](https://unseenui.com/components/skeleton/), [Progress](https://unseenui.com/components/progress/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { LoadingIndicator } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<LoadingIndicator variant="spinner" label="Searching sources" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `label` | `string` |  |
| `size` | `"small" \| "medium" \| "large"` |  |
| `variant` | `"spinner" \| "dots" \| "bars"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[Alert](https://unseenui.com/components/alert/), [EmptyState](https://unseenui.com/components/empty-state/), [Progress](https://unseenui.com/components/progress/), [Toast](https://unseenui.com/components/toast/), [Skeleton](https://unseenui.com/components/skeleton/), [StatusBadge](https://unseenui.com/components/status-badge/)

Page: https://unseenui.com/components/loading-indicator/
