# StatusBadge

A status label with a matching icon and color.

- **Use it for**: A run, tool or task state with its icon and tone.
- **Not for**: Categories without state. Try [Tag](https://unseenui.com/components/tag/).

## Installation

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

## Usage

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

<StatusBadge variant="soft" state="running" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `label` | `string` |  |
| `state` (required) | `string` |  |
| `variant` | `"outline" \| "soft" \| "plain" \| "icon"` |  |

## 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

[Table](https://unseenui.com/components/table/), [DataGrid](https://unseenui.com/components/data-grid/), [Pagination](https://unseenui.com/components/pagination/), [Matrix](https://unseenui.com/components/matrix/), [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/), [LoadingIndicator](https://unseenui.com/components/loading-indicator/), [Skeleton](https://unseenui.com/components/skeleton/)

Page: https://unseenui.com/components/status-badge/
