{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "popover-opening-sides",
  "title": "Popovers opening from different sides",
  "description": "Popovers opening from different sides, built from the popover component.",
  "registryDependencies": [
    "button",
    "popover"
  ],
  "files": [
    {
      "path": "registry/patterns/popover-opening-sides/popover-opening-sides.tsx",
      "content": "/**\n * Popovers opening from different sides - adapted for tealmac UI from the ReUI example \"c-popover-2\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\nimport { Button } from \"@/components/ui/button\"\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\"\n\nconst sides = [\"top\", \"right\", \"bottom\", \"left\"] as const\n\nexport function PopoverOpeningSides() {\n  return (\n    <div className=\"grid grid-cols-2 gap-2\">\n      {sides.map((side) => (\n        <Popover key={side}>\n          <PopoverTrigger asChild>\n            <Button variant=\"outline\" className=\"w-full capitalize\">\n              {side.replace(\"-\", \" \")}\n            </Button>\n          </PopoverTrigger>\n          <PopoverContent side={side} className=\"w-40\">\n            <p>Popover on {side.replace(\"-\", \" \")}</p>\n          </PopoverContent>\n        </Popover>\n      ))}\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}