# V avatar 12

> Avatar Inside An Empty State Example

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

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

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-avatar-12.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/avatar`

## Files

### `registry/default/variants/v-avatar-12.tsx`

```tsx
import { UserPlusIcon } from "lucide-react";
import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/registry/default/ui/avatar";

export function Pattern() {
  return (
    <div className="flex flex-col items-center gap-4 text-center">
      <div className="flex space-x-[-0.6rem]">
        <Avatar className="ring-2 ring-background">
          <AvatarImage
            alt="sarah@example.com"
            className="grayscale"
            src="https://images.unsplash.com/photo-1519699047748-de8e457a634e?w=96&h=96&dpr=2&q=80"
          />
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
        <Avatar className="ring-2 ring-background">
          <AvatarImage
            alt="@maxleiter"
            className="grayscale"
            src="https://github.com/maxleiter.png"
          />
          <AvatarFallback>LR</AvatarFallback>
        </Avatar>
        <Avatar className="ring-2 ring-background">
          <AvatarImage
            alt="@evilrabbit"
            className="grayscale"
            src="https://github.com/evilrabbit.png"
          />
          <AvatarFallback>ER</AvatarFallback>
        </Avatar>
        <button
          aria-label="Add collaborator"
          className="inline-flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground ring-2 ring-background hover:bg-accent hover:text-accent-foreground"
        >
          <UserPlusIcon aria-hidden="true" className="size-4" />
        </button>
      </div>
      <div className="space-y-0.5">
        <h3 className="font-medium text-sm">No active collaborators</h3>
        <p className="text-muted-foreground text-xs">
          Invite teammates to start working together.
        </p>
      </div>
    </div>
  );
}
```
