# Avatar Standard 18 - Avatar with Loading State

> Circular avatar with loading spinner overlay.

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

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/avatar-avatar-standard-18
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/avatar-avatar-standard-18-light-fcb5b45cfde497f7.png
- Registry item: https://shadcnblocks.com/r/avatar-avatar-standard-18.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/avatar-avatar-standard-18.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `avatar`

## Files

### `example/avatar/avatar-standard-18.tsx`

```tsx
import { Loader2 } from "lucide-react";

import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";

export const title = "Avatar with Loading State";

const Example = () => (
  <div className="relative">
    <Avatar>
      <AvatarImage
        alt="@haydenbleasel"
        src="https://github.com/haydenbleasel.png"
      />
      <AvatarFallback>HB</AvatarFallback>
    </Avatar>
    <div className="absolute inset-0 flex items-center justify-center rounded-full bg-background/80">
      <Loader2 className="size-4 animate-spin text-muted-foreground" />
    </div>
  </div>
);

export default Example;
```
