# V badge 13

> Status dot indicators (Online, Busy, Away, Offline)

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-badge-13).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-badge-13
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-badge-13-light-91875f294a33462c.png
- Registry item: https://ui.cnippet.dev/r/v-badge-13.json
- Categories: badge
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-badge-13.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/badge`

## Files

### `registry/default/variants/v-badge-13.tsx`

```tsx
import { Badge } from "@/registry/default/ui/badge";

type Status = {
  label: string;
  dotClass: string;
  variant:
    | "default"
    | "outline"
    | "secondary"
    | "success"
    | "warning"
    | "destructive"
    | "info";
};

const statuses: Status[] = [
  { dotClass: "bg-emerald-500", label: "Online", variant: "success" },
  { dotClass: "bg-red-500", label: "Busy", variant: "destructive" },
  { dotClass: "bg-yellow-400", label: "Away", variant: "warning" },
  { dotClass: "bg-slate-400", label: "Offline", variant: "secondary" },
];

export default function Particle() {
  return (
    <div className="flex flex-wrap items-center gap-2">
      {statuses.map((s) => (
        <Badge key={s.label} variant={s.variant}>
          <span
            aria-hidden="true"
            className={`size-1.5 rounded-full ${s.dotClass}`}
          />
          {s.label}
        </Badge>
      ))}
    </div>
  );
}
```
