# With avatar

> Assignee chip with a leading avatar inside the badge.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/badge-09).

- Page, with a live preview: https://shadcn.exchange/r/flx/badge-09
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/badge-09-light-2da72751c8dcca4d.png
- Registry item: https://ui.flexnative.com/r/badge-09.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

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

## Files

### `registry/patterns/badge/badge-09.tsx`

```tsx
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
import { Badge } from '@/components/ui/badge'

export function Badge09() {
  return (
    <Badge variant="secondary" className="h-6 gap-1.5 pl-0.5">
      <Avatar className="size-5">
        <AvatarImage
          src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=200&auto=format&fit=crop"
          alt="Sofia Rodrigues"
        />
        <AvatarFallback>SR</AvatarFallback>
      </Avatar>
      Sofia Rodrigues
    </Badge>
  )
}
```
