# With name

> Avatar beside a name and email, forming a user row.

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

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

## Install

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

### `registry/patterns/avatar/avatar-08.tsx`

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

export function Avatar08() {
  return (
    <div className="flex items-center gap-3">
      <Avatar>
        <AvatarImage
          src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=200&auto=format&fit=crop"
          alt="Sofia Rodrigues"
        />
        <AvatarFallback>SR</AvatarFallback>
      </Avatar>
      <div className="flex flex-col">
        <span className="text-sm font-medium">Sofia Rodrigues</span>
        <span className="text-muted-foreground text-xs">sofia@example.com</span>
      </div>
    </div>
  )
}
```
