---
title: "Status Icon"
description: "One status icon that morphs instead of swapping: a breathing arc spins while syncing, then sweeps on to close the ring, which fills green, amber or red as a white check, exclamation or cross draws in."
category: "Micro Interactions"
publishedAt: "2026-11-25"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/micro-interactions/status-icon"
markdown: "https://beui.dev/micro-interactions/status-icon.md"
license: "MIT"
---

# Status Icon

> One status icon that morphs instead of swapping: a breathing arc spins while syncing, then sweeps on to close the ring, which fills green, amber or red as a white check, exclamation or cross draws in.

## Install

```bash
npx shadcn@latest add @beui/status-icon
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { StatusIcon } from "@/components/motion/status-icon";

export function StatusIconUsage() {
  return <StatusIcon status="success" />;
}
```

## API Reference

### StatusIcon

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `status` | `"success" \| "warning" \| "idle" \| "error" \| "syncing"` | `idle` | No | Which state to show. The icon morphs from one state to the next. Default: "idle" |
| `size` | `number` | `20` | No | Width and height in px. Default: 20 |
| `decorative` | `boolean` | `false` | No | Hides the icon from assistive technology, for when nearby text already says the status. Default: false |
| `labels` | `Partial<{ idle: string; syncing: string; success: string; warning: string; error: string; }>` | — | No | Override any built-in string, e.g. for translation. |
| `className` | `string` | — | No | Classes merged onto the root element. |

## About Status Icon

Status Icon is a React status indicator built with Framer Motion that morphs between states instead of swapping glyphs. Idle is a faint ring. Syncing spins a lone arc up to a steady speed while its length breathes, like a system spinner. On success, warning or error the arc coasts on with the speed it had and eases to a stop at the top as the ring closes, the ring fills green, amber or red with a small spring, and a white check, exclamation or cross draws in, all as one motion. Going back to syncing empties it and the arc opens again.

### When to use it

- A save, sync or upload shows its progress and result in one spot.
- A list or table marks each row's job as running, done or failed.
- A status line next to text needs an icon that changes with it.

### Accessibility

It renders with the img role and a name for its state, such as Syncing or Done, which you can translate with labels. Pass decorative when nearby text already says the status, and it is hidden from assistive technology. With reduced motion the arc does not spin and marks fade in instead of drawing.

### FAQ

**Which states does it have?**

idle, syncing, success, warning and error. Change the status prop and it morphs from the current state to the new one.

**Can I change its size?**

Yes. Pass size in px; the default is 20. Colours come from the text colour classes, so className can change them.

## Source

- Registry detail: https://beui.dev/r/status-icon
- Raw source: https://beui.dev/r/status-icon/raw
- GitHub: https://github.com/starc007/ui-components
