# Avatar with multiple badges

> Avatar with multiple badges

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-avatar-34).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-avatar-34
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-avatar-34-light-8ab16565c00abb5e.png
- Registry item: https://reui.io/r/new-york-v4/c-avatar-34.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-avatar-34.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: `avatar`

## Files

### `c-avatar-34.tsx`

```tsx
import {
  Avatar,
  AvatarBadge,
  AvatarFallback,
  AvatarImage,
} from "@/components/ui/avatar"

export function Pattern() {
  return (
    <Avatar className="relative">
      <AvatarImage
        src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=96&h=96&dpr=2&q=80"
        alt="Alex Johnson"
      />
      <AvatarFallback>JB</AvatarFallback>
      <AvatarBadge className="bg-green-500" />
      <span className="border-background absolute -top-2 -right-2 flex size-5 items-center justify-center rounded-full border-2 bg-red-500 text-xs font-medium text-white">
        3
      </span>
    </Avatar>
  )
}
```
