# Icon fallback

> Generic user icon when there is no image or name.

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

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

## Install

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

```tsx
import { UserIcon } from 'lucide-react'

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

export function Avatar03() {
  return (
    <Avatar>
      <AvatarFallback>
        <UserIcon className="size-4" />
      </AvatarFallback>
    </Avatar>
  )
}
```
