{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dropdown-menu-opening-positions",
  "title": "Dropdown menus opening positions",
  "description": "Dropdown menus opening positions, built from the dropdown menu component.",
  "registryDependencies": [
    "button",
    "dropdown-menu"
  ],
  "files": [
    {
      "path": "registry/patterns/dropdown-menu-opening-positions/dropdown-menu-opening-positions.tsx",
      "content": "/**\n * Dropdown menus opening positions - adapted for tealmac UI from the ReUI example \"c-dropdown-menu-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  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuGroup,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\n\nconst sides = [\"left\", \"top\", \"bottom\", \"right\"] as const\n\nexport function DropdownMenuOpeningPositions() {\n  return (\n    <div className=\"grid grid-cols-2 gap-2\">\n      {sides.map((side) => (\n        <DropdownMenu key={side}>\n          <DropdownMenuTrigger asChild>\n            <Button variant=\"outline\" className=\"w-full\">\n              {side.replace(\"-\", \" \").charAt(0).toUpperCase() +\n                side.replace(\"-\", \" \").slice(1)}\n            </Button>\n          </DropdownMenuTrigger>\n          <DropdownMenuContent\n            side={side as \"left\" | \"top\" | \"bottom\" | \"right\"}\n          >\n            <DropdownMenuGroup>\n              <DropdownMenuItem>Profile</DropdownMenuItem>\n              <DropdownMenuItem>Billing</DropdownMenuItem>\n              <DropdownMenuItem>Settings</DropdownMenuItem>\n            </DropdownMenuGroup>\n          </DropdownMenuContent>\n        </DropdownMenu>\n      ))}\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}