# User list

> Avatars with name, role, and Follow action per row.

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

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

## Install

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

## Files

### `registry/patterns/item/item-12.tsx`

```tsx
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
import { Button } from '@/components/ui/button'
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemMedia,
  ItemTitle,
} from '@/components/ui/item'

const users = [
  {
    name: 'Sarah Chen',
    role: 'Product designer',
    initials: 'SC',
    avatar:
      'https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=200&q=80',
  },
  {
    name: 'Marcus Lee',
    role: 'Engineering manager',
    initials: 'ML',
    avatar:
      'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=200&q=80',
  },
  {
    name: 'Priya Patel',
    role: 'Data scientist',
    initials: 'PP',
    avatar:
      'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=200&q=80',
  },
]

export function Item12() {
  return (
    <ItemGroup className="w-full max-w-md">
      {users.map((user) => (
        <Item key={user.name} variant="outline">
          <ItemMedia variant="image">
            <Avatar className="size-full rounded-sm">
              <AvatarImage src={user.avatar} alt="" />
              <AvatarFallback>{user.initials}</AvatarFallback>
            </Avatar>
          </ItemMedia>
          <ItemContent>
            <ItemTitle>{user.name}</ItemTitle>
            <ItemDescription>{user.role}</ItemDescription>
          </ItemContent>
          <ItemActions>
            <Button variant="outline" size="sm">
              Follow
            </Button>
          </ItemActions>
        </Item>
      ))}
    </ItemGroup>
  )
}
```
