{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "item-21",
  "title": "In popover",
  "description": "File rows with image thumbnails displayed inside a floating popover panel.",
  "dependencies": [],
  "registryDependencies": [
    "item",
    "popover",
    "button"
  ],
  "files": [
    {
      "path": "registry/patterns/item/item-21.tsx",
      "content": "'use client'\n\nimport { Button } from '@/components/ui/button'\nimport {\n  Item,\n  ItemActions,\n  ItemContent,\n  ItemDescription,\n  ItemGroup,\n  ItemMedia,\n  ItemTitle,\n} from '@/components/ui/item'\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from '@/components/ui/popover'\nimport { DownloadIcon, FilesIcon } from 'lucide-react'\n\nconst files = [\n  {\n    name: 'hero-cover.png',\n    meta: 'Image · 1.4 MB',\n    thumb:\n      'https://images.unsplash.com/photo-1589705436822-720a68b246fb?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',\n  },\n  {\n    name: 'brand-kit.zip',\n    meta: 'Archive · 8.2 MB',\n    thumb:\n      'https://images.unsplash.com/photo-1602174286405-c0b06500baac?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',\n  },\n  {\n    name: 'prototype-v3.fig',\n    meta: 'Figma · 24 MB',\n    thumb:\n      'https://images.unsplash.com/photo-1651843609159-cd272ccaea43?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',\n  },\n]\n\nexport function Item21() {\n  return (\n    <Popover>\n      <PopoverTrigger\n        render={\n          <Button variant=\"outline\">\n            <FilesIcon data-icon=\"inline-start\" />\n            Files\n          </Button>\n        }\n      />\n      <PopoverContent className=\"w-72 p-2\">\n        <ItemGroup>\n          {files.map((file) => (\n            <Item key={file.name} size=\"xs\">\n              <ItemMedia variant=\"image\">\n                <img src={file.thumb} alt=\"\" />\n              </ItemMedia>\n              <ItemContent>\n                <ItemTitle>{file.name}</ItemTitle>\n                <ItemDescription>{file.meta}</ItemDescription>\n              </ItemContent>\n              <ItemActions>\n                <Button variant=\"ghost\" size=\"icon-sm\" aria-label=\"Download\">\n                  <DownloadIcon />\n                </Button>\n              </ItemActions>\n            </Item>\n          ))}\n        </ItemGroup>\n      </PopoverContent>\n    </Popover>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/flx/patterns/item/item-21.tsx"
    }
  ],
  "type": "registry:block"
}