# P avatar 10

> Avatar with notification badge

A shadcn/ui block from the [@coss](https://coss.com/ui) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/coss/p-avatar-10).

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

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-avatar-10.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: `@coss/avatar`, `@coss/badge`

## Files

### `registry/default/particles/p-avatar-10.tsx`

```tsx
import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/registry/default/ui/avatar";
import { Badge } from "@/registry/default/ui/badge";

export default function Particle() {
  return (
    <div className="relative">
      <Avatar>
        <AvatarImage
          alt="User"
          src="https://images.unsplash.com/photo-1543610892-0b1f7e6d8ac1?w=128&h=128&dpr=2&q=80"
        />
        <AvatarFallback>LT</AvatarFallback>
      </Avatar>
      <Badge
        className="absolute -end-1 -top-1 rounded-full outline-2 outline-background outline-solid"
        size="sm"
      >
        6
      </Badge>
    </div>
  );
}
```
