# Status Badge

> One status pill that moves between states: the tint eases to the new colour, the icon turns in, the label rolls and the pill glides to its new width.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Avatars & Badges |
| Live preview | https://uibrik.com/components/status-badge |
| Writes | 1 file into `components/uibrik/status-badge/` |
| Packages | `@tabler/icons-react`, `motion`, `react-use-measure` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 24, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/status-badge.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/status-badge`.

Can't run commands? https://uibrik.com/components/status-badge/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { StatusBadge } from "@/components/uibrik/status-badge/status-badge";

<StatusBadge
  size="md"
  // statuses={{}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/status-badge.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `status` | `"draft" \| "review" \| "building" \| "live" \| "done" \| "paused" \| "failed"` | `"live"` | Key of the status to show. |
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | Height, padding and text size. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `statuses` | `Record<string, { label; color; icon?; shake? }>` |  | Your own statuses. icon is "dot", "pulse", "spinner" or any icon; shake makes it shake on arrival. |
| `className` | `string` |  | Classes for the pill. |

## Where it fits

- **Deploys and builds**: A spinner while building, a live dot once shipped and a shake on failure, all in one pill that never jumps. Pairs with [Status Dashboard](https://uibrik.com/components/status-dashboard.md) (Pro).
- **Content workflows**: Draft, review and published each have their own icon and colour, so status reads without the label. Pairs with [Data Table](https://uibrik.com/components/data-table.md) (Pro).
- **Orders and tickets**: The pill eases to its new width, so a table column of statuses changes in place without the row shifting. Pairs with [Activity Log](https://uibrik.com/components/activity-log.md) (Pro).

## Same shelf: Avatars & Badges

- [Story Ring](https://uibrik.com/components/story-ring.md): An avatar in a segmented story ring that spins into dashes while a story loads, then drains the arc you opened to grey.
- [Tech Stack](https://uibrik.com/components/tech-stack.md): A row of real brand logos for the tools behind a product that open into tinted pills naming each one as neighbours slide aside.
- [Verified Badge](https://uibrik.com/components/verified-badge.md): A scalloped verified seal in blue, gold or grey that stamps in with a turn, draws its check and catches one pass of light.
- [Account Switcher](https://uibrik.com/components/account-switcher.md) (Pro): An account switcher whose trigger is a stack of faces: picking an account deals its face to the front while the name rolls over and a check lands.
- [Avatar Stack](https://uibrik.com/components/avatar-stack.md): Overlapping avatars that fan on hover and spring apart into a named list on a card growing out of the row.
- [Contribution Avatar](https://uibrik.com/components/contribution-avatar.md) (Pro): An avatar wrapped in its own contribution graph: rings of days and spokes of weeks that light up in a sweep. Hover a day for its count and week, tap to pin it, and pick out a shade or the streak from the key.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/status-badge/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
