{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "popover-14",
  "title": "Scrollable list",
  "description": "Scrollable list of team members with avatars and roles inside a fixed-height popover.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "popover",
    "button",
    "avatar",
    "scroll-area",
    "separator"
  ],
  "files": [
    {
      "path": "registry/patterns/popover/popover-14.tsx",
      "content": "import { UsersIcon } from 'lucide-react'\n\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'\nimport { Button } from '@/components/ui/button'\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from '@/components/ui/popover'\nimport { ScrollArea } from '@/components/ui/scroll-area'\nimport { Separator } from '@/components/ui/separator'\n\nconst members = [\n  {\n    name: 'Sofia Rodrigues',\n    role: 'Design lead',\n    src: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Marcus Chen',\n    role: 'Engineering',\n    src: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Aisha Patel',\n    role: 'Product',\n    src: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Lucas Silva',\n    role: 'Engineering',\n    src: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Emma Walker',\n    role: 'Marketing',\n    src: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Noah Becker',\n    role: 'Engineering',\n    src: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Yuki Tanaka',\n    role: 'Design',\n    src: 'https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Olivia Brown',\n    role: 'Operations',\n    src: 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Ravi Kumar',\n    role: 'Engineering',\n    src: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?q=80&w=120&auto=format&fit=crop',\n  },\n  {\n    name: 'Hannah Lee',\n    role: 'Support',\n    src: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?q=80&w=120&auto=format&fit=crop',\n  },\n] as const\n\nexport function Popover14() {\n  return (\n    <Popover>\n      <PopoverTrigger\n        render={\n          <Button variant=\"outline\">\n            <UsersIcon data-icon=\"inline-start\" />\n            Members\n            <span className=\"text-muted-foreground ml-1 text-xs\">\n              {members.length}\n            </span>\n          </Button>\n        }\n      />\n      <PopoverContent align=\"start\" className=\"w-72 gap-0 p-0\">\n        <div className=\"px-3 py-2\">\n          <p className=\"text-sm font-medium\">Team members</p>\n          <p className=\"text-muted-foreground text-xs\">\n            Scroll to see everyone.\n          </p>\n        </div>\n        <Separator />\n        <ScrollArea className=\"h-64\">\n          <ul className=\"flex flex-col py-1\">\n            {members.map((m) => (\n              <li\n                key={m.name}\n                className=\"hover:bg-muted/60 flex items-center gap-3 px-3 py-2\"\n              >\n                <Avatar className=\"size-8\">\n                  <AvatarImage src={m.src} alt={m.name} />\n                  <AvatarFallback>\n                    {m.name\n                      .split(' ')\n                      .map((p) => p[0])\n                      .join('')}\n                  </AvatarFallback>\n                </Avatar>\n                <div className=\"flex min-w-0 flex-1 flex-col\">\n                  <span className=\"truncate text-sm font-medium\">{m.name}</span>\n                  <span className=\"text-muted-foreground truncate text-xs\">\n                    {m.role}\n                  </span>\n                </div>\n              </li>\n            ))}\n          </ul>\n        </ScrollArea>\n      </PopoverContent>\n    </Popover>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/flx/patterns/popover/popover-14.tsx"
    }
  ],
  "type": "registry:block"
}