# With avatar

> User picker style button with a small avatar image leading the text label.

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

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

## Install

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

## Files

### `registry/patterns/button/button-10.tsx`

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

export function Button10() {
  return (
    <Button variant="outline" className="pl-1">
      <Avatar size="sm">
        <AvatarImage
          src="https://github.com/shadcn.png"
          alt="shadcn"
        />
        <AvatarFallback>SC</AvatarFallback>
      </Avatar>
      shadcn
    </Button>
  )
}
```
