{
  "id": "task_libraries:modal/react",
  "path": "/exapedia/react-modal-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React modal libraries",
  "answer": [
    {
      "t": "text",
      "text": "React modal libraries render dialogs: windows that open over the page, hold keyboard focus, and close on Escape or a button. These libraries handle confirmations, forms, and settings panels that interrupt the page until a person responds."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React modal libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#radix-ui-react-dialog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#base-ui-dialog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mui-material",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#headless-ui-dialog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-aria-modal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antd",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mantine-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F252"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-modal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F270"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#radix-ui-react-dialog",
          "label": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F159"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Default dialog styles",
            "Can disable focus trapping"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#radix-ui-react-dialog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#base-ui-dialog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mui-material",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#headless-ui-dialog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-aria-modal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#antd",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mantine-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F252"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-modal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F270"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "radix-ui-react-dialog",
          "name": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/radix-ui/primitives"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@radix-ui/react-dialog"
            },
            {
              "label": "Docs",
              "href": "https://www.radix-ui.com/primitives/docs/components/dialog"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "@radix-ui/react-dialog is the Dialog primitive from Radix: unstyled parts, "
            },
            {
              "t": "code",
              "text": "Root"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Trigger"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Portal"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Overlay"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Content"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Title"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Description"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "Close"
            },
            {
              "t": "text",
              "text": ", that the app assembles and styles. In modal mode, focus stays inside the dialog, the content underneath becomes inert, and Escape closes it. Setting "
            },
            {
              "t": "code",
              "text": "modal"
            },
            {
              "t": "text",
              "text": " to false switches to non-modal mode. "
            },
            {
              "t": "code",
              "text": "Title"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "Description"
            },
            {
              "t": "text",
              "text": " give screen readers the dialog's name and summary."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.radix-ui.com/primitives/docs/components/dialog",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F158"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Modal and non-modal"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Setting "
                },
                {
                  "t": "code",
                  "text": "modal"
                },
                {
                  "t": "text",
                  "text": " to false keeps the page behind the dialog interactive."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Controlled or uncontrolled"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The dialog tracks its own open state or follows "
                },
                {
                  "t": "code",
                  "text": "open"
                },
                {
                  "t": "text",
                  "text": " and "
                },
                {
                  "t": "code",
                  "text": "onOpenChange"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Styles come from the app"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Layout and appearance come from the app's CSS."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Custom triggers forward refs"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A custom component used as a trigger accepts Radix's props, event handlers, and ref."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/shadcn-ui/ui",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function DialogContent({\n  className,\n  children,\n  showCloseButton = true,\n  ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n  showCloseButton?: boolean\n}) {\n  return (\n    <DialogPortal data-slot=\"dialog-portal\">\n      <DialogOverlay />\n      <DialogPrimitive.Content\n        data-slot=\"dialog-content\"\n        className={cn(\n          \"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {showCloseButton && (\n          <DialogPrimitive.Close\n            data-slot=\"dialog-close\"\n            className=\"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n          >\n            <XIcon />\n            <span className=\"sr-only\">Close</span>\n          </DialogPrimitive.Close>\n        )}\n      </DialogPrimitive.Content>\n    </DialogPortal>\n  )\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/shadcn-ui/ui/blob/c257f688cf4de7ec10cc1be84cad29cd4631182c/apps/v4/registry/new-york-v4/ui/dialog.tsx#L50-L82",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40radix-ui/react-dialog%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F158"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import * as Dialog from \"@radix-ui/react-dialog\";\n\nexport default function Example() {\n  return (\n    <Dialog.Root>\n      <Dialog.Trigger>Open dialog</Dialog.Trigger>\n      <Dialog.Portal>\n        <Dialog.Overlay />\n        <Dialog.Content>\n          <Dialog.Title>Notice</Dialog.Title>\n          <Dialog.Description>Review this notice.</Dialog.Description>\n          <Dialog.Close>Close</Dialog.Close>\n        </Dialog.Content>\n      </Dialog.Portal>\n    </Dialog.Root>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.radix-ui.com/primitives/docs/components/dialog",
                  "label": [
                    {
                      "t": "text",
                      "text": "dialog.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "base-ui-dialog",
          "name": [
            {
              "t": "fact",
              "fact": "F176"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mui/base-ui"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@base-ui/react"
            },
            {
              "label": "Docs",
              "href": "https://base-ui.com/react/components/button.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Base UI is a library of unstyled React components from the MUI team, and its "
            },
            {
              "t": "code",
              "text": "Dialog"
            },
            {
              "t": "text",
              "text": " is a popup that opens over the whole page. Parts such as "
            },
            {
              "t": "code",
              "text": "Dialog.Root"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Dialog.Trigger"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Dialog.Backdrop"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "Dialog.Popup"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "Dialog.Close"
            },
            {
              "t": "text",
              "text": " take class names or styles from the app. The "
            },
            {
              "t": "code",
              "text": "modal"
            },
            {
              "t": "text",
              "text": " prop chooses full modal behavior, no modality, or "
            },
            {
              "t": "code",
              "text": "trap-focus"
            },
            {
              "t": "text",
              "text": ", which keeps focus inside the dialog while the page still scrolls and takes clicks."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://base-ui.com/react/components/button.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Close control for touch"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "In "
                },
                {
                  "t": "code",
                  "text": "trap-focus"
                },
                {
                  "t": "text",
                  "text": " mode, a close button inside the dialog lets touch screen reader users leave it."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Styles come from the app"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Every dialog part is styled by the app."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/shadcn-ui/ui",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "function DialogContent({\n  className,\n  children,\n  showCloseButton = true,\n  ...props\n}: DialogPrimitive.Popup.Props & {\n  showCloseButton?: boolean\n}) {\n  return (\n    <DialogPortal>\n      <DialogOverlay />\n      <DialogPrimitive.Popup\n        data-slot=\"dialog-content\"\n        className={cn(\n          \"cn-dialog-content fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {showCloseButton && (\n          <DialogPrimitive.Close\n            data-slot=\"dialog-close\"\n            render={\n              <Button\n                variant=\"ghost\"\n                className=\"cn-dialog-close\"\n                size=\"icon-sm\"\n              />\n            }\n          >\n            <IconPlaceholder\n              lucide=\"XIcon\"\n              tabler=\"IconX\"\n              hugeicons=\"Cancel01Icon\"\n              phosphor=\"XIcon\"\n              remixicon=\"RiCloseLine\"\n            />\n            <span className=\"sr-only\">Close</span>\n          </DialogPrimitive.Close>\n        )}\n      </DialogPrimitive.Popup>\n    </DialogPortal>\n  )\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/shadcn-ui/ui/blob/c257f688cf4de7ec10cc1be84cad29cd4631182c/apps/v4/registry/bases/base/ui/dialog.tsx#L39-L83",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40base-ui/react%20for%20modal%20dialogs%2C%20accessible%20focus%20behavior%2C%20dismissal%20state%2C%20layered%20overlays%20and%20navigation%20panels&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F176"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Dialog } from '@base-ui/react/dialog';\n\nexport default function Example() {\n  return (\n    <Dialog.Root>\n      <Dialog.Trigger>Open</Dialog.Trigger>\n      <Dialog.Portal>\n        <Dialog.Popup>\n          <Dialog.Title>Example dialog</Dialog.Title>\n          <Dialog.Close>Close</Dialog.Close>\n        </Dialog.Popup>\n      </Dialog.Portal>\n    </Dialog.Root>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://base-ui.com/react/components/dialog.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "dialog.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mui-material",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mui/material-ui"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mui/material"
            },
            {
              "label": "Docs",
              "href": "https://mui.com/material-ui/getting-started/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Material UI is a React component library that implements Google's Material Design, and its "
            },
            {
              "t": "code",
              "text": "Dialog"
            },
            {
              "t": "text",
              "text": " renders a modal window in front of the app with Material styling. "
            },
            {
              "t": "code",
              "text": "DialogTitle"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "DialogContent"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "DialogContentText"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "DialogActions"
            },
            {
              "t": "text",
              "text": " lay out the title, body, and buttons. The "
            },
            {
              "t": "code",
              "text": "fullScreen"
            },
            {
              "t": "text",
              "text": " prop fills the screen, and "
            },
            {
              "t": "code",
              "text": "slots.transition"
            },
            {
              "t": "text",
              "text": " swaps the default transition for one such as "
            },
            {
              "t": "code",
              "text": "Slide"
            },
            {
              "t": "text",
              "text": ". Dialogs follow the app's MUI theme."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mui.com/material-ui/getting-started/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Material styling included"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Dialogs come styled to Material Design and follow the app's theme."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Full screen on small screens"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "fullScreen"
                },
                {
                  "t": "text",
                  "text": " combined with "
                },
                {
                  "t": "code",
                  "text": "useMediaQuery"
                },
                {
                  "t": "text",
                  "text": " fills the screen below a breakpoint."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Installs a full UI library"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The dialog comes from "
                },
                {
                  "t": "code",
                  "text": "@mui/material"
                },
                {
                  "t": "text",
                  "text": ", which installs with Emotion for styling."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Dialog, DialogTitle, DialogContent } from '@mui/material';\n\nexport default function Example() {\n  return (\n    <Dialog open>\n      <DialogTitle>Notice</DialogTitle>\n      <DialogContent>Review this notice.</DialogContent>\n    </Dialog>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://mui.com/material-ui/react-dialog/",
                  "label": [
                    {
                      "t": "text",
                      "text": "react-dialog.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mui/material%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "headless-ui-dialog",
          "name": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/tailwindlabs/headlessui"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@headlessui/react"
            },
            {
              "label": "Docs",
              "href": "https://headlessui.com/react/button"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Headless UI is a set of unstyled, accessible React components from Tailwind Labs, the company behind Tailwind CSS. Its "
            },
            {
              "t": "code",
              "text": "Dialog"
            },
            {
              "t": "text",
              "text": " is controlled by "
            },
            {
              "t": "code",
              "text": "open"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "onClose"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "DialogPanel"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "DialogTitle"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "Description"
            },
            {
              "t": "text",
              "text": " mark the panel, title, and description. Focus stays inside the open dialog, the dialog renders into a portal, and Escape or a click outside the panel calls "
            },
            {
              "t": "code",
              "text": "onClose"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://headlessui.com/react/button",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "The app holds open state"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The dialog opens and closes only through the "
                },
                {
                  "t": "code",
                  "text": "open"
                },
                {
                  "t": "text",
                  "text": " prop, which the app updates in "
                },
                {
                  "t": "code",
                  "text": "onClose"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Styles come from the app"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Layout and appearance come from class names, styles, or child elements."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Modal only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Focus always stays inside the open dialog, with no non-modal mode."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/makeplane/plane",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function ModalCore(props: Props) {\n  const {\n    children,\n    handleClose,\n    isOpen,\n    position = EModalPosition.CENTER,\n    width = EModalWidth.XXL,\n    className = \"\",\n  } = props;\n\n  return (\n    <Transition.Root show={isOpen} as={Fragment}>\n      <Dialog as=\"div\" className=\"relative z-30\" onClose={() => handleClose && handleClose()}>\n        <Transition.Child\n          as={Fragment}\n          enter=\"ease-out duration-300\"\n          enterFrom=\"opacity-0\"\n          enterTo=\"opacity-100\"\n          leave=\"ease-in duration-200\"\n          leaveFrom=\"opacity-100\"\n          leaveTo=\"opacity-0\"\n        >\n          <div className=\"fixed inset-0 bg-backdrop transition-opacity\" />\n        </Transition.Child>\n\n        <div className=\"fixed inset-0 z-30 overflow-y-auto\">\n          <div className={position}>\n            <Transition.Child\n              as={Fragment}\n              enter=\"ease-out duration-300\"\n              enterFrom=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n              enterTo=\"opacity-100 translate-y-0 sm:scale-100\"\n              leave=\"ease-in duration-200\"\n              leaveFrom=\"opacity-100 translate-y-0 sm:scale-100\"\n              leaveTo=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n            >\n              <Dialog.Panel\n                className={cn(\n                  \"relative w-full transform rounded-lg bg-surface-1 text-left shadow-raised-200 transition-all\",\n                  width,\n                  className\n                )}\n              >\n                {children}\n              </Dialog.Panel>\n            </Transition.Child>\n          </div>\n        </div>\n      </Dialog>\n    </Transition.Root>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/makeplane/plane/blob/c62930ebcfab1a9591379289d505effbe92dcf32/packages/ui/src/modals/modal-core.tsx#L22-L73",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40headlessui/react%20for%20modal%20dialogs%2C%20accessible%20focus%20behavior%2C%20dismissal%20state%2C%20layered%20overlays%20and%20navigation%20panels&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Description, Dialog, DialogPanel, DialogTitle } from '@headlessui/react'\nimport { useState } from 'react'\n\nfunction Example() {\n  let [isOpen, setIsOpen] = useState(false)\n\n  return (\n    <>\n      <button onClick={() => setIsOpen(true)}>Open dialog</button>\n      <Dialog open={isOpen} onClose={() => setIsOpen(false)} className=\"relative z-50\">\n        <div className=\"fixed inset-0 flex w-screen items-center justify-center p-4\">\n          <DialogPanel className=\"max-w-lg space-y-4 border bg-white p-12\">\n            <DialogTitle className=\"font-bold\">Deactivate account</DialogTitle>\n            <Description>This will permanently deactivate your account</Description>\n            <p>Are you sure you want to deactivate your account? All of your data will be permanently removed.</p>\n            <div className=\"flex gap-4\">\n              <button onClick={() => setIsOpen(false)}>Cancel</button>\n              <button onClick={() => setIsOpen(false)}>Deactivate</button>\n            </div>\n          </DialogPanel>\n        </div>\n      </Dialog>\n    </>\n  )\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://headlessui.com/react/dialog",
                  "label": [
                    {
                      "t": "text",
                      "text": "dialog.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-aria-modal",
          "name": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/adobe/react-spectrum"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-aria-components"
            },
            {
              "label": "Docs",
              "href": "https://react-spectrum.adobe.com/react-aria/getting-started.html"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "React Aria Components is Adobe's library of accessible, unstyled React components. A modal is built from three of them: "
            },
            {
              "t": "code",
              "text": "ModalOverlay"
            },
            {
              "t": "text",
              "text": " for the backdrop, "
            },
            {
              "t": "code",
              "text": "Modal"
            },
            {
              "t": "text",
              "text": " for the container, and "
            },
            {
              "t": "code",
              "text": "Dialog"
            },
            {
              "t": "text",
              "text": " for the labeled content, usually opened by a "
            },
            {
              "t": "code",
              "text": "DialogTrigger"
            },
            {
              "t": "text",
              "text": " around a button. Render props such as "
            },
            {
              "t": "code",
              "text": "isEntering"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "isExiting"
            },
            {
              "t": "text",
              "text": " style enter and exit animations. A click outside closes the modal only when "
            },
            {
              "t": "code",
              "text": "isDismissable"
            },
            {
              "t": "text",
              "text": " is set."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://react-spectrum.adobe.com/react-aria/getting-started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Needs a labeled Dialog"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A "
                },
                {
                  "t": "code",
                  "text": "Dialog"
                },
                {
                  "t": "text",
                  "text": " with a heading in its title slot gives screen readers the modal's name."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Outside clicks opt in"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "isDismissable"
                },
                {
                  "t": "text",
                  "text": " turns on closing the modal with a click outside it."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Modal only"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The overlay always blocks interaction outside it, with no switch to turn that off."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/actualbudget/actual",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export const Modal = ({\n  name,\n  isLoading = false,\n  noAnimation = false,\n  style,\n  children,\n  onClose,\n  wrapperProps,\n  containerProps,\n  presentation = 'dialog',\n  ariaLabelledBy,\n  ...props\n}: ModalProps) => {\n  const { t } = useTranslation();\n  const { isNarrowWidth } = useResponsive();\n  const isSheet = presentation === 'sheet' && isNarrowWidth;\n  const viewport = useVisualViewport();\n  const { enableScope, disableScope } = useHotkeysContext();\n\n  // This deactivates any key handlers in the \"app\" scope\n  useEffect(() => {\n    enableScope(name);\n    return () => disableScope(name);\n  }, [enableScope, disableScope, name]);\n\n  const { isHidden, isActive, onClose: closeModal } = useModalState();\n  const dispatch = useDispatch();\n  const prefersReducedMotion = useReducedMotion();\n  const isAnimatedSheet = isSheet && !prefersReducedMotion;\n  const [isOpen, setIsOpen] = useState(true);\n  const isClosingRef = useRef(false);\n  const closeTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n  useEffect(() => {\n    return () => {\n      if (closeTimerRef.current) {\n        clearTimeout(closeTimerRef.current);\n      }\n    };\n  }, []);\n\n  const handleOnClose = () => {\n    if (isClosingRef.current) {\n      return;\n    }\n    isClosingRef.current = true;\n    const finishClose = () => {\n      if (isSheet) {\n        dispatch(collapseModals({ rootModalName: name }));\n      } else {\n        closeModal();\n      }\n      onClose?.();\n    };\n    if (isAnimatedSheet) {\n      closeTimerRef.current = setTimeout(finishClose, SHEET_EXIT_MS);\n      return;\n    }\n    finishClose();\n  };\n\n  const sheetRef = useSwipeToDismiss({\n    isEnabled: isSheet,\n    onDismiss: () => {\n      setIsOpen(false);\n      handleOnClose();\n    },\n  });\n\n  return (\n    <ErrorBoundary FallbackComponent={FeatureErrorFallback}>\n      <ReactAriaModalOverlay\n        data-testid={`${name}-modal`}\n        className={isAnimatedSheet ? mobileSheetOverlayClassName : undefined}\n        isDismissable\n        isOpen={isOpen}\n        onOpenChange={nextIsOpen => {\n          setIsOpen(nextIsOpen);\n          if (!nextIsOpen) {\n            handleOnClose();\n          }\n        }}\n        style={{\n          position: 'fixed',\n          inset: 0,\n          zIndex: MODAL_Z_INDEX,\n          fontSize: 14,\n          // on mobile, we disable the blurred background for performance reasons\n          ...(isNarrowWidth\n            ? {\n                backgroundColor: 'rgba(0, 0, 0, 0.4)',\n              }\n            : {\n                backdropFilter: 'blur(1px) brightness(0.9)',\n              }),\n          ...style,\n        }}\n        {...props}\n      >\n        {/* A container for positioning the modal relative to the visual viewport */}\n        <View\n          nativeStyle={{\n            // React Aria's height removes pinch zoom scaling. Safari page zoom\n            // needs CSS pixels, including keyboard resizing while zoomed.\n            '--visual-viewport-height': `${viewport.height}px`,\n            top: viewport.offsetTop,\n          }}\n          style={{\n            display: 'flex',\n            ...(isSheet\n              ? { alignItems: 'stretch', justifyContent: 'flex-end' }\n              : { alignItems: 'center', justifyContent: 'center' }),\n            height: 'var(--visual-viewport-height)',\n            overflowY: 'auto',\n            ...wrapperProps?.style,\n          }}\n        >\n          <ReactAriaModal\n            ref={sheetRef}\n            className={isAnimatedSheet ? mobileSheetModalClassName : undefined}\n          >\n            {modalProps => (\n              <Dialog\n                aria-label={ariaLabelledBy ? undefined : t('Modal dialog')}\n                aria-labelledby={ariaLabelledBy}\n                className={css(styles.lightScrollbar)}\n                style={{\n                  outline: 'none', // remove focus outline\n                }}\n              >\n                <ModalContentContainer\n                  noAnimation={noAnimation || isSheet}\n                  isActive={isActive(name)}\n                  {...containerProps}\n                  style={{\n                    flex: 1,\n                    padding: 10,\n                    willChange: isSheet ? undefined : 'opacity, transform',\n                    maxWidth: '90vw',\n                    minWidth: '90vw',\n                    maxHeight: 'calc(var(--visual-viewport-height) * 0.9)',\n                    minHeight: 0,\n                    borderRadius: 6,\n                    //border: '1px solid ' + theme.modalBorder,\n                    color: theme.pageText,\n                    backgroundColor: theme.modalBackground,\n                    opacity: isHidden ? 0 : 1,\n                    [`@media (min-width: ${tokens.breakpoint_small})`]: {\n                      minWidth: tokens.breakpoint_small,\n                    },\n                    overflowY: 'auto',\n                    ...styles.shadowLarge,\n                    ...(isSheet && mobileSheetContainerStyle),\n                    ...containerProps?.style,\n                  }}\n                >\n                  {isSheet && <View style={mobileSheetHandleStyle} />}\n                  <View style={{ paddingTop: 0, flex: 1, flexShrink: 0 }}>\n                    <ErrorBoundary FallbackComponent={FeatureErrorFallback}>\n                      {typeof children === 'function'\n                        ? children(modalProps)\n                        : children}\n                    </ErrorBoundary>\n                  </View>\n                  {isLoading && (\n                    <View\n                      style={{\n                        position: 'absolute',\n                        top: 0,\n                        left: 0,\n                        right: 0,\n                        bottom: 0,\n                        backgroundColor: theme.pageBackground,\n                        alignItems: 'center',\n                        justifyContent: 'center',\n                        zIndex: 1000,\n                      }}\n                    >\n                      <AnimatedLoading\n                        style={{ width: 20, height: 20 }}\n                        color={theme.pageText}\n                      />\n                    </View>\n                  )}\n                </ModalContentContainer>\n              </Dialog>\n            )}\n          </ReactAriaModal>\n        </View>\n      </ReactAriaModalOverlay>\n    </ErrorBoundary>\n  );\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/actualbudget/actual/blob/6e761b42c2c4a0c9326dfb6af787fe81e0b66bc2/packages/desktop-client/src/components/common/Modal.tsx#L106-L298",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F235"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-aria-components%20for%20modal%20dialogs%2C%20accessible%20focus%20behavior%2C%20dismissal%20state%2C%20layered%20overlays%20and%20navigation%20panels&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F222"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { Modal, Dialog, Heading } from 'react-aria-components';\n\nexport default function Example() {\n  return (\n    <Modal isOpen>\n      <Dialog>\n        <Heading slot=\"title\">Notice</Heading>\n        <p>Review this notice.</p>\n      </Dialog>\n    </Modal>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://react-spectrum.adobe.com/react-aria/Modal.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "Modal.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "antd",
          "name": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ant-design/ant-design"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/antd"
            },
            {
              "label": "Docs",
              "href": "https://ant.design/docs/react/introduce"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Ant Design is a React component library for enterprise apps, and its "
            },
            {
              "t": "code",
              "text": "Modal"
            },
            {
              "t": "text",
              "text": " renders a styled dialog with a title, a body, and OK and Cancel buttons, controlled by "
            },
            {
              "t": "code",
              "text": "open"
            },
            {
              "t": "text",
              "text": ", "
            },
            {
              "t": "code",
              "text": "onOk"
            },
            {
              "t": "text",
              "text": ", and "
            },
            {
              "t": "code",
              "text": "onCancel"
            },
            {
              "t": "text",
              "text": ". Static methods such as "
            },
            {
              "t": "code",
              "text": "Modal.confirm"
            },
            {
              "t": "text",
              "text": " open a confirmation dialog from a function call, and "
            },
            {
              "t": "code",
              "text": "Modal.useModal()"
            },
            {
              "t": "text",
              "text": " does the same while reading theme and locale settings from the app. "
            },
            {
              "t": "code",
              "text": "confirmLoading"
            },
            {
              "t": "text",
              "text": " shows a loading state on the OK button while an action runs."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ant.design/docs/react/introduce",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F238"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "OK and Cancel built in"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The footer comes with OK and Cancel buttons wired to "
                },
                {
                  "t": "code",
                  "text": "onOk"
                },
                {
                  "t": "text",
                  "text": " and "
                },
                {
                  "t": "code",
                  "text": "onCancel"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Confirmation from a call"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "Modal.confirm"
                },
                {
                  "t": "text",
                  "text": " opens a confirmation dialog without rendering a component."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Static methods skip context"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "Modal.confirm"
                },
                {
                  "t": "text",
                  "text": " can't read "
                },
                {
                  "t": "code",
                  "text": "ConfigProvider"
                },
                {
                  "t": "text",
                  "text": " settings; "
                },
                {
                  "t": "code",
                  "text": "Modal.useModal()"
                },
                {
                  "t": "text",
                  "text": " and its "
                },
                {
                  "t": "code",
                  "text": "contextHolder"
                },
                {
                  "t": "text",
                  "text": " can."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Modal } from 'antd';\n\nexport default function Example() {\n  return (\n    <Modal open title=\"Notice\">\n      <p>Review this notice.</p>\n    </Modal>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://ant.design/components/modal/",
                  "label": [
                    {
                      "t": "text",
                      "text": "modal.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=antd%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F238"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mantine-core",
          "name": [
            {
              "t": "fact",
              "fact": "F252"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mantinedev/mantine"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mantine/core"
            },
            {
              "label": "Docs",
              "href": "https://mantine.dev/getting-started/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Mantine is a React component library, and its "
            },
            {
              "t": "code",
              "text": "Modal"
            },
            {
              "t": "text",
              "text": " renders a styled dialog controlled by "
            },
            {
              "t": "code",
              "text": "opened"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "onClose"
            },
            {
              "t": "text",
              "text": ", often paired with the "
            },
            {
              "t": "code",
              "text": "useDisclosure"
            },
            {
              "t": "text",
              "text": " hook from "
            },
            {
              "t": "code",
              "text": "@mantine/hooks"
            },
            {
              "t": "text",
              "text": ". Props set the title, size, vertical centering, and transition. The "
            },
            {
              "t": "code",
              "text": "fullScreen"
            },
            {
              "t": "text",
              "text": " prop fills the screen, and combined with the media query hook it applies on small screens only. Focus trapping is on by default and turns off with "
            },
            {
              "t": "code",
              "text": "trapFocus"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mantine.dev/getting-started/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F252"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Themed styling"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The modal follows the Mantine theme the app already uses."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Full screen option"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "fullScreen"
                },
                {
                  "t": "text",
                  "text": " fills the screen, and a media query can limit it to small screens."
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Provider setup first"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "The app wraps itself in "
                },
                {
                  "t": "code",
                  "text": "MantineProvider"
                },
                {
                  "t": "text",
                  "text": " and imports Mantine's styles before the modal renders."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/medplum/medplum",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F268"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function SendPasswordResetModal(props: SendPasswordResetModalProps): JSX.Element {\n  const medplum = useMedplum();\n  const [submitting, setSubmitting] = useState(false);\n\n  function handleSubmit(): void {\n    setSubmitting(true);\n    medplum\n      .post(`admin/projects/${props.projectId}/members/${props.membershipId}/resetpassword`, {})\n      .then(() => {\n        showNotification({ color: 'green', message: 'Password reset email sent.' });\n        props.onSuccess?.();\n        props.onClose();\n      })\n      .catch((err) => showNotification({ color: 'red', message: normalizeErrorString(err), autoClose: false }))\n      .finally(() => setSubmitting(false));\n  }\n\n  return (\n    <Modal opened={props.opened} onClose={props.onClose} title=\"Send password reset email\" centered>\n      <Stack>\n        <Text size=\"sm\">\n          Send this member an email with a single-use link to set a new password. Their current password remains valid\n          until they complete the reset.\n        </Text>\n        <Group justify=\"flex-end\">\n          <Button variant=\"default\" onClick={props.onClose}>\n            Cancel\n          </Button>\n          <Button color=\"blue\" loading={submitting} onClick={handleSubmit}>\n            Send email\n          </Button>\n        </Group>\n      </Stack>\n    </Modal>\n  );\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/medplum/medplum/blob/32f5d1ed09d2ceb9abb0e0801b770555ac77ac1b/packages/app/src/admin/AccountSecurity.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F267"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mantine/core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F252"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { useDisclosure } from '@mantine/hooks';\nimport { Modal, Button } from '@mantine/core';\n\nfunction Demo() {\n  const [opened, { open, close }] = useDisclosure(false);\n\n  return (\n    <>\n      <Modal opened={opened} onClose={close} title=\"Authentication\">\n        {/* Modal content */}\n      </Modal>\n\n      <Button variant=\"default\" onClick={open}>\n        Open modal\n      </Button>\n    </>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://mantine.dev/core/modal/",
                  "label": [
                    {
                      "t": "text",
                      "text": "Demo.tsx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-modal",
          "name": [
            {
              "t": "fact",
              "fact": "F270"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/reactjs/react-modal"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-modal"
            },
            {
              "label": "Docs",
              "href": "https://reactcommunity.org/react-modal/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "react-modal is a standalone, accessible modal component for React. "
            },
            {
              "t": "code",
              "text": "ReactModal"
            },
            {
              "t": "text",
              "text": " opens when "
            },
            {
              "t": "code",
              "text": "isOpen"
            },
            {
              "t": "text",
              "text": " is true, takes a "
            },
            {
              "t": "code",
              "text": "contentLabel"
            },
            {
              "t": "text",
              "text": " for screen readers, and calls "
            },
            {
              "t": "code",
              "text": "onRequestClose"
            },
            {
              "t": "text",
              "text": " on Escape or a click on the overlay. "
            },
            {
              "t": "code",
              "text": "ReactModal.setAppElement"
            },
            {
              "t": "text",
              "text": " names the app's root element so it is hidden from screen readers while the modal is open. The content and overlay come with basic inline styles, which the "
            },
            {
              "t": "code",
              "text": "style"
            },
            {
              "t": "text",
              "text": " prop or class names replace."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://reactcommunity.org/react-modal/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F270"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F112"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "text",
                  "text": "App element set first"
                }
              ],
              "body": [
                {
                  "t": "code",
                  "text": "ReactModal.setAppElement"
                },
                {
                  "t": "text",
                  "text": " points at the app's root so background content gets "
                },
                {
                  "t": "code",
                  "text": "aria-hidden"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Classes replace default styles"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "A custom content or overlay class drops the default inline styles. The class then supplies every style."
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Focus always contained"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Tab always cycles inside the open modal, with no prop to turn that off."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/tilt-dev/tilt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F284"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "render() {\n    let showModal =\n      Boolean(this.props.error) &&\n      (this.props.showFatalErrorModal === ShowFatalErrorModal.Default ||\n        this.props.showFatalErrorModal === ShowFatalErrorModal.Show)\n    return (\n      <Modal\n        isOpen={showModal}\n        className=\"FatalErrorModal\"\n        onRequestClose={this.props.handleClose}\n      >\n        <h2 className=\"FatalErrorModal-title\">Fatal Error</h2>\n        <div className=\"FatalErrorModal-pane\">\n          <p>Tilt has encountered a fatal error: {this.props.error}</p>\n          <p>\n            Once you fix this issue you'll need to restart Tilt. In the meantime\n            feel free to browse through the UI.\n          </p>\n        </div>\n      </Modal>\n    )\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/tilt-dev/tilt/blob/30a5e684c83f2532ef60435c370a8853cdeceb03/web/src/FatalErrorModal.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F283"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-modal%20for%20modal%20dialogs%2C%20accessible%20focus%20behavior%2C%20dismissal%20state%2C%20layered%20overlays%20and%20navigation%20panels&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F270"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import ReactModal from 'react-modal';\n\nReactModal.setAppElement('#root');\n\nexport default function Example() {\n  return (\n    <ReactModal isOpen contentLabel=\"Notice\">\n      <p>Review this notice.</p>\n    </ReactModal>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://reactcommunity.org/react-modal/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F275"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React modal library should I use?",
      "a": [
        {
          "t": "text",
          "text": "In an app that already uses Material UI, Ant Design, or Mantine, use that library's dialog. For a custom design, use an unstyled primitive: "
        },
        {
          "t": "link",
          "href": "#radix-ui-react-dialog",
          "label": [
            {
              "t": "text",
              "text": "Radix Dialog"
            }
          ]
        },
        {
          "t": "text",
          "text": " or "
        },
        {
          "t": "link",
          "href": "#base-ui-dialog",
          "label": [
            {
              "t": "text",
              "text": "Base UI"
            }
          ]
        },
        {
          "t": "text",
          "text": " for modal and non-modal dialogs, "
        },
        {
          "t": "link",
          "href": "#headless-ui-dialog",
          "label": [
            {
              "t": "text",
              "text": "Headless UI"
            }
          ]
        },
        {
          "t": "text",
          "text": " alongside Tailwind CSS, or "
        },
        {
          "t": "link",
          "href": "#react-aria-modal",
          "label": [
            {
              "t": "text",
              "text": "React Aria Components"
            }
          ]
        },
        {
          "t": "text",
          "text": " for animated overlays."
        }
      ]
    },
    {
      "q": "What does the shadcn/ui Dialog use?",
      "a": [
        {
          "t": "text",
          "text": "The shadcn/ui Dialog wraps "
        },
        {
          "t": "link",
          "href": "#radix-ui-react-dialog",
          "label": [
            {
              "t": "text",
              "text": "Radix Dialog"
            }
          ]
        },
        {
          "t": "text",
          "text": " and adds Tailwind CSS styles. A second shadcn/ui base builds the same component on "
        },
        {
          "t": "link",
          "href": "#base-ui-dialog",
          "label": [
            {
              "t": "text",
              "text": "Base UI"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "How do I open a dialog in Material UI?",
      "a": [
        {
          "t": "text",
          "text": "Render "
        },
        {
          "t": "code",
          "text": "Dialog"
        },
        {
          "t": "text",
          "text": " with an "
        },
        {
          "t": "code",
          "text": "open"
        },
        {
          "t": "text",
          "text": " prop and an "
        },
        {
          "t": "code",
          "text": "onClose"
        },
        {
          "t": "text",
          "text": " handler from "
        },
        {
          "t": "link",
          "href": "#mui-material",
          "label": [
            {
              "t": "text",
              "text": "Material UI"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and place "
        },
        {
          "t": "code",
          "text": "DialogTitle"
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "code",
          "text": "DialogContent"
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "code",
          "text": "DialogActions"
        },
        {
          "t": "text",
          "text": " inside it. The "
        },
        {
          "t": "code",
          "text": "fullScreen"
        },
        {
          "t": "text",
          "text": " prop fills the screen, for example below a breakpoint read with "
        },
        {
          "t": "code",
          "text": "useMediaQuery"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "How do I show a confirmation modal in Ant Design?",
      "a": [
        {
          "t": "text",
          "text": "Call "
        },
        {
          "t": "code",
          "text": "Modal.confirm"
        },
        {
          "t": "text",
          "text": " from "
        },
        {
          "t": "link",
          "href": "#antd",
          "label": [
            {
              "t": "text",
              "text": "Ant Design"
            }
          ]
        },
        {
          "t": "text",
          "text": " to open a confirmation dialog without rendering a component. To read theme and locale settings from "
        },
        {
          "t": "code",
          "text": "ConfigProvider"
        },
        {
          "t": "text",
          "text": ", use the "
        },
        {
          "t": "code",
          "text": "modal"
        },
        {
          "t": "text",
          "text": " instance from "
        },
        {
          "t": "code",
          "text": "Modal.useModal()"
        },
        {
          "t": "text",
          "text": " and render its "
        },
        {
          "t": "code",
          "text": "contextHolder"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "Can a Radix dialog let the page stay interactive?",
      "a": [
        {
          "t": "text",
          "text": "Yes. Setting "
        },
        {
          "t": "code",
          "text": "modal"
        },
        {
          "t": "text",
          "text": " to false on "
        },
        {
          "t": "link",
          "href": "#radix-ui-react-dialog",
          "label": [
            {
              "t": "text",
              "text": "Radix Dialog"
            }
          ]
        },
        {
          "t": "text",
          "text": " turns off focus trapping and lets the page behind the dialog take clicks. "
        },
        {
          "t": "link",
          "href": "#base-ui-dialog",
          "label": [
            {
              "t": "text",
              "text": "Base UI"
            }
          ]
        },
        {
          "t": "text",
          "text": " also has a "
        },
        {
          "t": "code",
          "text": "trap-focus"
        },
        {
          "t": "text",
          "text": " mode that keeps focus inside without blocking the page."
        }
      ]
    },
    {
      "q": "Radix Dialog vs Headless UI Dialog: what's the difference?",
      "a": [
        {
          "t": "text",
          "text": "Both are unstyled. Radix splits the dialog into parts such as "
        },
        {
          "t": "code",
          "text": "Trigger"
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "code",
          "text": "Overlay"
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "code",
          "text": "Content"
        },
        {
          "t": "text",
          "text": ", and offers a non-modal mode. "
        },
        {
          "t": "link",
          "href": "#headless-ui-dialog",
          "label": [
            {
              "t": "text",
              "text": "Headless UI"
            }
          ]
        },
        {
          "t": "text",
          "text": " is controlled through "
        },
        {
          "t": "code",
          "text": "open"
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "code",
          "text": "onClose"
        },
        {
          "t": "text",
          "text": ", always keeps focus inside the dialog, and renders it in a portal."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @base-ui/react",
      "display": "Base UI Dialog",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @base-ui/react",
      "display": "106.7M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @base-ui/react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @base-ui/react",
      "display": "1.9.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @base-ui/react",
      "display": "v1.9.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @base-ui/react",
      "display": "11.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Traps keyboard focus, @base-ui/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Restores focus on close, @base-ui/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Closes on Escape, @base-ui/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, @base-ui/react",
      "display": "npm install @base-ui/react react react-dom",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, @base-ui/react",
      "display": "Provides a dialog popup with configurable modality, focus, and trigger handling.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, @base-ui/react",
      "display": "Supports partial modal behavior",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, @base-ui/react",
      "display": "Use trap-focus to contain focus while allowing outside pointer interactions.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, @base-ui/react",
      "display": "Supports detached dialog triggers",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, @base-ui/react",
      "display": "Associate triggers with a dialog through a shared handle.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, @base-ui/react",
      "display": "Modal mode needs closing controls",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, @base-ui/react",
      "display": "Include an in-dialog close button so touch screen readers can exit.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, @base-ui/react",
      "display": "Imperative calls require a root",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, @base-ui/react",
      "display": "Handle calls before mounting or after unmounting are ignored.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, @base-ui/react",
      "display": "import { Dialog } from '@base-ui/react/dialog';\nimport styles from './index.module.css';\n\nexport default function ExampleDialog() {\n  return (\n    <Dialog.Root>\n      <Dialog.Trigger className={styles.Button}>View notifications</Dialog.Trigger>\n      <Dialog.Portal>\n        <Dialog.Backdrop className={styles.Backdrop} />\n        <Dialog.Popup className={styles.Popup}>\n          <div className={styles.Intro}>\n            <Dialog.Title className={styles.Title}>Notifications</Dialog.Title>\n            <Dialog.Description className={styles.Description}>\n              You are all caught up. Good job!\n            </Dialog.Description>\n          </div>\n          <div className={styles.Actions}>\n            <Dialog.Close className={styles.Button}>Close</Dialog.Close>\n          </div>\n        </Dialog.Popup>\n      </Dialog.Portal>\n    </Dialog.Root>\n  );\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, @base-ui/react",
      "display": "function DialogContent({\n  className,\n  children,\n  showCloseButton = true,\n  ...props\n}: DialogPrimitive.Popup.Props & {\n  showCloseButton?: boolean\n}) {\n  return (\n    <DialogPortal>\n      <DialogOverlay />\n      <DialogPrimitive.Popup\n        data-slot=\"dialog-content\"\n        className={cn(\n          \"cn-dialog-content fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {showCloseButton && (\n          <DialogPrimitive.Close\n            data-slot=\"dialog-close\"\n            render={\n              <Button\n                variant=\"ghost\"\n                className=\"cn-dialog-close\"\n                size=\"icon-sm\"\n              />\n            }\n          >\n            <IconPlaceholder\n              lucide=\"XIcon\"\n              tabler=\"IconX\"\n              hugeicons=\"Cancel01Icon\"\n              phosphor=\"XIcon\"\n              remixicon=\"RiCloseLine\"\n            />\n            <span className=\"sr-only\">Close</span>\n          </DialogPrimitive.Close>\n        )}\n      </DialogPrimitive.Popup>\n    </DialogPortal>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, @base-ui/react",
      "display": "dialog.tsx · DialogContent()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, @base-ui/react",
      "display": "shadcn-ui/ui",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, shadcn-ui/ui",
      "display": "128.3K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, shadcn-ui/ui",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F26": {
      "label": "Library name, radix-ui",
      "display": "Radix Dialog",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, radix-ui",
      "display": "101.5M",
      "asOf": "2026-11-15"
    },
    "F28": {
      "label": "License, radix-ui",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, radix-ui",
      "display": "1.8.1",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Undated package release, radix-ui",
      "display": "v1.8.1",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Repository stars, radix-ui",
      "display": "19.5K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Traps keyboard focus, radix-ui",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Restores focus on close, radix-ui",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Closes on Escape, radix-ui",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, radix-ui",
      "display": "npm install radix-ui react react-dom",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, radix-ui",
      "display": "Provides composable modal and non-modal dialog primitives.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, radix-ui",
      "display": "Supports non-modal dialogs",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, radix-ui",
      "display": "Allow interaction outside the dialog by selecting non-modal mode.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, radix-ui",
      "display": "Provides accessible dialog labeling",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, radix-ui",
      "display": "Connect the dialog title and description through included components.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, radix-ui",
      "display": "Requires your visual styling",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, radix-ui",
      "display": "Provide both functional layout styles and the final appearance.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, radix-ui",
      "display": "Custom triggers must forward props",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, radix-ui",
      "display": "Spread the supplied props and event handlers in custom trigger components.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, radix-ui",
      "display": "import * as React from \"react\";\n\nimport { Dialog } from \"radix-ui\";\n\nconst wait = () => new Promise((resolve) => setTimeout(resolve, 1000));\n\nexport default () => {\n  const [open, setOpen] = React.useState(false);\n\n  return (\n    <Dialog.Root open={open} onOpenChange={setOpen}>\n      <Dialog.Trigger>Open</Dialog.Trigger>\n\n      <Dialog.Portal>\n        <Dialog.Overlay />\n\n        <Dialog.Content>\n          <form\n            onSubmit={(event) => {\n              wait().then(() => setOpen(false));\n              event.preventDefault();\n            }}\n          >\n            {/** some inputs */}\n\n            <button type=\"submit\">Submit</button>\n          </form>\n        </Dialog.Content>\n      </Dialog.Portal>\n    </Dialog.Root>\n  );\n};\n\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, radix-ui",
      "display": "function DialogContent({\n  className,\n  children,\n  showCloseButton = true,\n  ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n  showCloseButton?: boolean\n}) {\n  return (\n    <DialogPortal data-slot=\"dialog-portal\">\n      <DialogOverlay />\n      <DialogPrimitive.Content\n        data-slot=\"dialog-content\"\n        className={cn(\n          \"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {showCloseButton && (\n          <DialogPrimitive.Close\n            data-slot=\"dialog-close\"\n            className=\"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n          >\n            <XIcon />\n            <span className=\"sr-only\">Close</span>\n          </DialogPrimitive.Close>\n        )}\n      </DialogPrimitive.Content>\n    </DialogPortal>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, radix-ui",
      "display": "dialog.tsx · DialogContent()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, radix-ui",
      "display": "shadcn-ui/ui",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, shadcn-ui/ui",
      "display": "128.3K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, shadcn-ui/ui",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F51": {
      "label": "Library name, @headlessui/react",
      "display": "Headless UI Dialog",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, @headlessui/react",
      "display": "37.2M",
      "asOf": "2026-11-15"
    },
    "F53": {
      "label": "License, @headlessui/react",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, @headlessui/react",
      "display": "2.2.10",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Undated package release, @headlessui/react",
      "display": "v2.2.10",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Repository stars, @headlessui/react",
      "display": "28.8K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Traps keyboard focus, @headlessui/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Restores focus on close, @headlessui/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Closes on Escape, @headlessui/react",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, @headlessui/react",
      "display": "npm install @headlessui/react react react-dom",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, @headlessui/react",
      "display": "Provides a renderless dialog component with accessibility and keyboard behavior.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, @headlessui/react",
      "display": "Contains keyboard focus",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, @headlessui/react",
      "display": "Tab navigation stays inside the open dialog.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, @headlessui/react",
      "display": "Portals dialogs automatically",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, @headlessui/react",
      "display": "Dialog renders into a dedicated portal outside the application root.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, @headlessui/react",
      "display": "You own dialog state",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, @headlessui/react",
      "display": "Update open in onClose when dismissal is requested.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, @headlessui/react",
      "display": "Requires your visual styling",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, @headlessui/react",
      "display": "Provide layout and appearance through className, style, or child elements.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Quickstart, @headlessui/react",
      "display": "import { Description, Dialog, DialogPanel, DialogTitle } from '@headlessui/react'\nimport { useState } from 'react'\n\nfunction Example() {\n  let [isOpen, setIsOpen] = useState(false)\n\n  return (\n    <>\n      <button onClick={() => setIsOpen(true)}>Open dialog</button>\n      <Dialog open={isOpen} onClose={() => setIsOpen(false)} className=\"relative z-50\">\n        <div className=\"fixed inset-0 flex w-screen items-center justify-center p-4\">\n          <DialogPanel className=\"max-w-lg space-y-4 border bg-white p-12\">\n            <DialogTitle className=\"font-bold\">Deactivate account</DialogTitle>\n            <Description>This will permanently deactivate your account</Description>\n            <p>Are you sure you want to deactivate your account? All of your data will be permanently removed.</p>\n            <div className=\"flex gap-4\">\n              <button onClick={() => setIsOpen(false)}>Cancel</button>\n              <button onClick={() => setIsOpen(false)}>Deactivate</button>\n            </div>\n          </DialogPanel>\n        </div>\n      </Dialog>\n    </>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function, @headlessui/react",
      "display": "export default function MobileMenu({ menu }: { menu: Menu[] }) {\n  const pathname = usePathname();\n  const searchParams = useSearchParams();\n  const [isOpen, setIsOpen] = useState(false);\n  const openMobileMenu = () => setIsOpen(true);\n  const closeMobileMenu = () => setIsOpen(false);\n\n  useEffect(() => {\n    const handleResize = () => {\n      if (window.innerWidth > 768) {\n        setIsOpen(false);\n      }\n    };\n    window.addEventListener(\"resize\", handleResize);\n    return () => window.removeEventListener(\"resize\", handleResize);\n  }, [isOpen]);\n\n  useEffect(() => {\n    setIsOpen(false);\n  }, [pathname, searchParams]);\n\n  return (\n    <>\n      <button\n        onClick={openMobileMenu}\n        aria-label=\"Open mobile menu\"\n        className=\"flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors md:hidden dark:border-neutral-700 dark:text-white\"\n      >\n        <Bars3Icon className=\"h-4\" />\n      </button>\n      <Transition show={isOpen}>\n        <Dialog onClose={closeMobileMenu} className=\"relative z-50\">\n          <Transition.Child\n            as={Fragment}\n            enter=\"transition-all ease-in-out duration-300\"\n            enterFrom=\"opacity-0 backdrop-blur-none\"\n            enterTo=\"opacity-100 backdrop-blur-[.5px]\"\n            leave=\"transition-all ease-in-out duration-200\"\n            leaveFrom=\"opacity-100 backdrop-blur-[.5px]\"\n            leaveTo=\"opacity-0 backdrop-blur-none\"\n          >\n            <div className=\"fixed inset-0 bg-black/30\" aria-hidden=\"true\" />\n          </Transition.Child>\n          <Transition.Child\n            as={Fragment}\n            enter=\"transition-all ease-in-out duration-300\"\n            enterFrom=\"translate-x-[-100%]\"\n            enterTo=\"translate-x-0\"\n            leave=\"transition-all ease-in-out duration-200\"\n            leaveFrom=\"translate-x-0\"\n            leaveTo=\"translate-x-[-100%]\"\n          >\n            <Dialog.Panel className=\"fixed bottom-0 left-0 right-0 top-0 flex h-full w-full flex-col bg-white pb-6 dark:bg-black\">\n              <div className=\"p-4\">\n                <button\n                  className=\"mb-4 flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors dark:border-neutral-700 dark:text-white\"\n                  onClick={closeMobileMenu}\n                  aria-label=\"Close mobile menu\"\n                >\n                  <XMarkIcon className=\"h-6\" />\n                </button>\n\n                <div className=\"mb-4 w-full\">\n                  <Suspense fallback={<SearchSkeleton />}>\n                    <Search />\n                  </Suspense>\n                </div>\n                {menu.length ? (\n                  <ul className=\"flex w-full flex-col\">\n                    {menu.map((item: Menu) => (\n                      <li\n                        className=\"py-2 text-xl text-black transition-colors hover:text-neutral-500 dark:text-white\"\n                        key={item.title}\n                      >\n                        <Link\n                          href={item.path}\n                          prefetch={true}\n                          onClick={closeMobileMenu}\n                        >\n                          {item.title}\n                        </Link>\n                      </li>\n                    ))}\n                  </ul>\n                ) : null}\n              </div>\n            </Dialog.Panel>\n          </Transition.Child>\n        </Dialog>\n      </Transition>\n    </>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function reference, @headlessui/react",
      "display": "mobile-menu.tsx · MobileMenu()",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project repository, @headlessui/react",
      "display": "vercel/commerce",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project stars, vercel/commerce",
      "display": "14.3K",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project push date, vercel/commerce",
      "display": "Oct 2026",
      "asOf": "2026-10-19"
    },
    "F76": {
      "label": "Library name, react-aria-components",
      "display": "React Aria Modal",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Monthly downloads, react-aria-components",
      "display": "32.0M",
      "asOf": "2026-11-15"
    },
    "F78": {
      "label": "License, react-aria-components",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Package release, react-aria-components",
      "display": "1.22.1",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Undated package release, react-aria-components",
      "display": "v1.22.1",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Repository stars, react-aria-components",
      "display": "16.0K",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Traps keyboard focus, react-aria-components",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Restores focus on close, react-aria-components",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Closes on Escape, react-aria-components",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Install, react-aria-components",
      "display": "npm install react-aria-components tailwind-variants react react-dom",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "What it does, react-aria-components",
      "display": "Provides modal overlays that block interaction outside their content.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, react-aria-components",
      "display": "Supports animated overlay states",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, react-aria-components",
      "display": "Use isEntering and isExiting states to style modal transitions.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, react-aria-components",
      "display": "Separates overlay and content composition",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, react-aria-components",
      "display": "Compose ModalOverlay, Modal, and Dialog for the modal structure.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations lead, react-aria-components",
      "display": "Requires appropriate dialog semantics",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations, react-aria-components",
      "display": "Include a labeled Dialog inside the modal for accessible dialog content.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, react-aria-components",
      "display": "Outside-click dismissal is opt-in",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, react-aria-components",
      "display": "Set isDismissable to allow outside interaction to close the modal.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Quickstart, react-aria-components",
      "display": "'use client';\nimport React from 'react';\nimport {ModalOverlay, type ModalOverlayProps, Modal as RACModal} from 'react-aria-components/Modal';\nimport {tv} from 'tailwind-variants';\n\nconst overlayStyles = tv({\n  base: 'absolute top-0 left-0 w-full h-(--page-height) isolate z-20 bg-black/[50%] text-center backdrop-blur-lg',\n  variants: {\n    isEntering: {\n      true: 'animate-in fade-in duration-200 ease-out'\n    },\n    isExiting: {\n      true: 'animate-out fade-out duration-200 ease-in'\n    }\n  }\n});\n\nconst modalStyles = tv({\n  base: 'font-sans w-full max-w-[min(90vw,450px)] max-h-[calc(var(--visual-viewport-height)*.9)] rounded-2xl bg-white dark:bg-neutral-800/70 dark:backdrop-blur-2xl dark:backdrop-saturate-200 forced-colors:bg-[Canvas] text-left align-middle text-neutral-700 dark:text-neutral-300 shadow-2xl bg-clip-padding border border-black/10 dark:border-white/10',\n  variants: {\n    isEntering: {\n      true: 'animate-in zoom-in-105 ease-out duration-200'\n    },\n    isExiting: {\n      true: 'animate-out zoom-out-95 ease-in duration-200'\n    }\n  }\n});\n\nexport function Modal(props: ModalOverlayProps) {\n  return (\n    <ModalOverlay {...props} className={overlayStyles}>\n      <div className=\"sticky top-0 left-0 w-full h-(--visual-viewport-height) flex items-center justify-center box-border\">\n        <RACModal {...props} className={modalStyles} />\n      </div>\n    </ModalOverlay>\n  );\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project function, react-aria-components",
      "display": "export function Dialog({\n  className,\n  isDismissable: isDismissableInternal,\n  children,\n  overlay,\n  size = \"md\",\n  role = \"dialog\",\n  closeButton = true,\n  ...props\n}: DialogProps) {\n  const isDismissable = isDismissableInternal ?? role !== \"alertdialog\"\n  return (\n    <ModalOverlay\n      data-slot=\"dialog-overlay\"\n      isDismissable={isDismissable}\n      className={cx(\n        \"fixed top-0 left-0 z-50 h-(--visual-viewport-height,100dvh) w-(--visual-viewport-width,100vw) overflow-clip sm:absolute sm:h-[max(var(--page-height),100dvh)] sm:w-[max(var(--page-width),100vw)]\",\n        \"bg-background/15 backdrop-blur-[1px] motion-reduce:backdrop-blur-none\",\n        \"entering:fade-in entering:animate-in entering:duration-300 entering:ease-out\",\n        \"exiting:fade-out exiting:animate-out exiting:fill-mode-forwards exiting:ease-in\",\n        overlay?.className\n      )}\n      {...props}\n    >\n      <div\n        className={cn(\n          \"sticky top-0 flex h-(--visual-viewport-height,100dvh) w-(--visual-viewport-width,100vw) flex-col items-center justify-end sm:grid sm:grid-rows-[1fr_auto_3fr] sm:justify-normal sm:justify-items-center\",\n          size === \"fullscreen\" ? \"md:p-3\" : \"md:p-4\"\n        )}\n      >\n        <Modal\n          data-slot=\"dialog-content\"\n          className={cx(\n            \"row-start-2 w-full text-start align-middle\",\n            \"[--visual-viewport-vertical-padding:16px]\",\n            size === \"fullscreen\"\n              ? \"**:data-[slot=dialog-body]:min-h-[calc(var(--visual-viewport-height)-var(--visual-viewport-vertical-padding)-var(--dialog-header-height)-var(--dialog-footer-height))] sm:[--visual-viewport-vertical-padding:16px]\"\n              : \"sm:[--visual-viewport-vertical-padding:32px]\",\n            \"relative overflow-hidden bg-overlay text-overlay-foreground\",\n            \"inset-shadow-xs rounded-t-2xl ring ring-muted-foreground/25 drop-shadow-xl sm:rounded-2xl dark:ring-border\",\n            sizes[size],\n            \"entering:slide-in-from-bottom sm:entering:zoom-in-95 sm:entering:slide-in-from-bottom-0 entering:animate-in entering:duration-300 entering:ease-out\",\n            \"exiting:slide-out-to-bottom sm:exiting:zoom-out-95 sm:exiting:slide-out-to-bottom-0 exiting:animate-out exiting:fill-mode-forwards exiting:ease-in\",\n            className\n          )}\n        >\n          <PrimitiveDialog\n            aria-label={props[\"aria-label\"] ?? undefined}\n            aria-labelledby={props[\"aria-labelledby\"]}\n            data-slot=\"dialog\"\n            role={role}\n            className={cn(\n              \"peer/dialog group/dialog relative flex max-h-[calc(var(--visual-viewport-height)-var(--visual-viewport-vertical-padding))] flex-col overflow-hidden outline-hidden [--gutter:--spacing(6)] sm:[--gutter:--spacing(8)]\",\n              className\n            )}\n          >\n            {(values) => (\n              <>\n                {typeof children === \"function\" ? children(values) : children}\n                {closeButton && <DialogCloseIcon isDismissable={isDismissable} />}\n              </>\n            )}\n          </PrimitiveDialog>\n        </Modal>\n      </div>\n    </ModalOverlay>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project function reference, react-aria-components",
      "display": "dialog.tsx · Dialog()",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project repository, react-aria-components",
      "display": "irsyadadl/intentui",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project stars, irsyadadl/intentui",
      "display": "2.0K",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project push date, irsyadadl/intentui",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F101": {
      "label": "Library name, react-modal",
      "display": "react-modal",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Monthly downloads, react-modal",
      "display": "13.7M",
      "asOf": "2026-11-15"
    },
    "F103": {
      "label": "License, react-modal",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Package release, react-modal",
      "display": "3.16.3",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Undated package release, react-modal",
      "display": "v3.16.3",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Repository stars, react-modal",
      "display": "7.4K",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Traps keyboard focus, react-modal",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Restores focus on close, react-modal",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Closes on Escape, react-modal",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Install, react-modal",
      "display": "npm install react-modal react react-dom",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "What it does, react-modal",
      "display": "Provides accessible modal dialog components for React.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "strengths lead, react-modal",
      "display": "Restores prior focus automatically",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "strengths, react-modal",
      "display": "Closing the modal returns focus to the previously focused element.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "strengths lead, react-modal",
      "display": "Supports Escape-key dismissal",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "strengths, react-modal",
      "display": "Users can close the modal with Escape unless this behavior is disabled.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "limitations lead, react-modal",
      "display": "Background hiding needs configuration",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "limitations, react-modal",
      "display": "Identify the application element so background content receives aria-hidden.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "limitations lead, react-modal",
      "display": "Custom classes replace default styles",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "limitations, react-modal",
      "display": "Supply replacement styles when setting content or overlay CSS classes.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "Quickstart, react-modal",
      "display": "import React from 'react';\nimport Modal from 'react-modal';\n\nexport default props => {\n  const {\n    title, isOpen, askToClose,\n    onAfterOpen, onRequestClose, onChangeInput\n  } = props;\n\n  return (\n    <Modal\n      id=\"test\"\n      contentLabel=\"modalA\"\n      closeTimeoutMS={150}\n      isOpen={isOpen}\n      onAfterOpen={onAfterOpen}\n      onRequestClose={onRequestClose}>\n      <h1>{title}</h1>\n      <button onClick={askToClose}>close</button>\n      <div>I am a modal. Use the first input to change the modal's title.</div>\n      <form>\n        <input onChange={onChangeInput} />\n        <input />\n        <br />\n        <button>Button A</button>\n        <button>Button B</button>\n        <button>Button C</button>\n        <button>Button D</button>\n      </form>\n    </Modal>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Developer need",
      "display": "Modal and non-modal primitives",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "Why choose radix-ui",
      "display": "a dialog API with explicit modal and non-modal modes",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "Developer need in introduction",
      "display": "modal and non-modal primitives",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "When to consider @base-ui/react",
      "display": "focus-only modality and detached triggers matter",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "Developer need",
      "display": "Renderless controlled dialogs",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Why choose @headlessui/react",
      "display": "controlled dialog state with managed focus and portals",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "Developer need in introduction",
      "display": "renderless controlled dialogs",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "When to consider radix-ui",
      "display": "an explicit non-modal mode is required",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Developer need",
      "display": "Composable modal structure",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "Why choose react-aria-components",
      "display": "separate overlay, modal, and dialog components",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "Developer need in introduction",
      "display": "composable modal structure",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "Developer need",
      "display": "Partial modal behavior",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "Why choose @base-ui/react",
      "display": "focus containment with outside pointer interaction",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "Developer need in introduction",
      "display": "partial modal behavior",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "Developer need",
      "display": "Explicit application-root setup",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "Why choose react-modal",
      "display": "configuring background hiding for an existing React application",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "Developer need in introduction",
      "display": "explicit application-root setup",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "Page introduction",
      "display": "React modal libraries let web developers build dialogs and control their visibility.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: Which React modal library should I choose?",
      "display": "Radix Dialog supports modal and non-modal modes.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "FAQ: Which React modal library should I choose?",
      "display": "Headless UI supplies a controlled dialog with managed keyboard focus.",
      "asOf": "2026-11-17"
    },
    "F141": {
      "label": "FAQ: Which React modal library should I choose?",
      "display": "Base UI also supports focus-only modality.",
      "asOf": "2026-11-17"
    },
    "F142": {
      "label": "FAQ: Which React modal library should I choose?",
      "display": "React Aria composes overlay and modal elements.",
      "asOf": "2026-11-17"
    },
    "F143": {
      "label": "FAQ: Does a close request automatically update controlled dialog state?",
      "display": "Headless UI opens and closes according to its open prop; the owner updates that state.",
      "asOf": "2026-11-17"
    },
    "F144": {
      "label": "FAQ: Does a close request automatically update controlled dialog state?",
      "display": "Its onClose callback is required for Escape and outside-interaction dismissal requests.",
      "asOf": "2026-11-17"
    },
    "F145": {
      "label": "FAQ: Does Headless UI render dialogs in a portal?",
      "display": "Dialog is automatically rendered in a portal.",
      "asOf": "2026-11-17"
    },
    "F146": {
      "label": "FAQ: Can Radix dialogs allow interaction outside the dialog?",
      "display": "Radix Dialog supports non-modal as well as modal mode.",
      "asOf": "2026-11-17"
    },
    "F147": {
      "label": "FAQ: What must a custom Radix trigger component forward?",
      "display": "Custom components must accept the props and event handlers that Radix supplies.",
      "asOf": "2026-11-17"
    },
    "F148": {
      "label": "FAQ: What must a custom Radix trigger component forward?",
      "display": "They must also accept the forwarded ref where Radix needs it.",
      "asOf": "2026-11-17"
    },
    "F149": {
      "label": "FAQ: Do Radix dialogs include their visual styling?",
      "display": "Radix Primitives are unstyled and allow different styling systems.",
      "asOf": "2026-11-17"
    },
    "F150": {
      "label": "FAQ: Do Radix dialogs include their visual styling?",
      "display": "The application controls functional styling as well as appearance.",
      "asOf": "2026-11-17"
    },
    "F151": {
      "label": "FAQ: What does Base UI trap-focus mode allow?",
      "display": "It traps focus without locking page scrolling or disabling outside pointer interaction.",
      "asOf": "2026-11-17"
    },
    "F152": {
      "label": "FAQ: What does Base UI trap-focus mode allow?",
      "display": "Provide an in-dialog close control for touch screen readers.",
      "asOf": "2026-11-17"
    },
    "F153": {
      "label": "FAQ: Can a Base UI dialog handle open an unmounted dialog?",
      "display": "Handle calls made without an attached root are ignored and are not replayed on mount.",
      "asOf": "2026-11-17"
    },
    "F154": {
      "label": "FAQ: Does React Aria close a modal on outside clicks by default?",
      "display": "Its isDismissable option is false by default; enable it to allow outside-interaction dismissal.",
      "asOf": "2026-11-17"
    },
    "F155": {
      "label": "FAQ: How does react-modal hide the rest of the application?",
      "display": "Identify the application element so react-modal can apply aria-hidden while the modal is open.",
      "asOf": "2026-11-17"
    },
    "F156": {
      "label": "FAQ: Does react-modal restore keyboard focus after closing?",
      "display": "Focus returns to the previously focused element by default.",
      "asOf": "2026-11-17"
    },
    "F157": {
      "label": "FAQ: Why did custom react-modal classes remove the default styling?",
      "display": "A content or overlay CSS class disables that component’s default styles.",
      "asOf": "2026-11-17"
    },
    "F158": {
      "label": "Library name, @radix-ui/react-dialog",
      "display": "@radix-ui/react-dialog",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Monthly downloads, @radix-ui/react-dialog",
      "display": "365.3M",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "License, @radix-ui/react-dialog",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Package release, @radix-ui/react-dialog",
      "display": "1.3.1",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Package release date, @radix-ui/react-dialog",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Install, @radix-ui/react-dialog",
      "display": "npm install @radix-ui/react-dialog",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Quickstart, @radix-ui/react-dialog",
      "display": "import * as Dialog from \"@radix-ui/react-dialog\";\n\nexport default function Example() {\n  return (\n    <Dialog.Root>\n      <Dialog.Trigger>Open dialog</Dialog.Trigger>\n      <Dialog.Portal>\n        <Dialog.Overlay />\n        <Dialog.Content>\n          <Dialog.Title>Notice</Dialog.Title>\n          <Dialog.Description>Review this notice.</Dialog.Description>\n          <Dialog.Close>Close</Dialog.Close>\n        </Dialog.Content>\n      </Dialog.Portal>\n    </Dialog.Root>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Official description, @radix-ui/react-dialog",
      "display": "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart source file, @radix-ui/react-dialog",
      "display": "components/dialog",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Repository stars, @radix-ui/react-dialog",
      "display": "19.5K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Default dialog styles, @radix-ui/react-dialog",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Can disable focus trapping, @radix-ui/react-dialog",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Integration fit, @radix-ui/react-dialog",
      "display": "Unstyled compound primitives; provide application CSS and accessible labels.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Focus behavior, @radix-ui/react-dialog",
      "display": "Root modal=false disables modal focus trapping; it also changes outside interaction behavior.",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project function, @radix-ui/react-dialog",
      "display": "function DialogContent({\n  className,\n  children,\n  showCloseButton = true,\n  ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n  showCloseButton?: boolean\n}) {\n  return (\n    <DialogPortal data-slot=\"dialog-portal\">\n      <DialogOverlay />\n      <DialogPrimitive.Content\n        data-slot=\"dialog-content\"\n        className={cn(\n          \"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {showCloseButton && (\n          <DialogPrimitive.Close\n            data-slot=\"dialog-close\"\n            className=\"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n          >\n            <XIcon />\n            <span className=\"sr-only\">Close</span>\n          </DialogPrimitive.Close>\n        )}\n      </DialogPrimitive.Content>\n    </DialogPortal>\n  )\n}",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project source file, @radix-ui/react-dialog",
      "display": "apps/v4/registry/new-york-v4/ui/dialog.tsx",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project full_name, @radix-ui/react-dialog",
      "display": "shadcn-ui/ui",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project stargazers_count, @radix-ui/react-dialog",
      "display": "128.5K",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Library name, @base-ui/react",
      "display": "Base UI",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Monthly downloads, @base-ui/react",
      "display": "109.8M",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "License, @base-ui/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Package release, @base-ui/react",
      "display": "1.9.0",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release date, @base-ui/react",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Install, @base-ui/react",
      "display": "pnpm add @base-ui/react",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart, @base-ui/react",
      "display": "import { Dialog } from '@base-ui/react/dialog';\n\nexport default function Example() {\n  return (\n    <Dialog.Root>\n      <Dialog.Trigger>Open</Dialog.Trigger>\n      <Dialog.Portal>\n        <Dialog.Popup>\n          <Dialog.Title>Example dialog</Dialog.Title>\n          <Dialog.Close>Close</Dialog.Close>\n        </Dialog.Popup>\n      </Dialog.Portal>\n    </Dialog.Root>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Repository stars, @base-ui/react",
      "display": "11.4K",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Default dialog styles, @base-ui/react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Can disable focus trapping, @base-ui/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Integration fit, @base-ui/react",
      "display": "Unstyled primitives with independent modal, focus-only, and non-modal modes.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Focus behavior, @base-ui/react",
      "display": "Root modal=false differs from modal=trap-focus, which deliberately retains focus trapping.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project function, @base-ui/react",
      "display": "function DialogContent({\n  className,\n  children,\n  showCloseButton = true,\n  ...props\n}: DialogPrimitive.Popup.Props & {\n  showCloseButton?: boolean\n}) {\n  return (\n    <DialogPortal>\n      <DialogOverlay />\n      <DialogPrimitive.Popup\n        data-slot=\"dialog-content\"\n        className={cn(\n          \"cn-dialog-content fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        {showCloseButton && (\n          <DialogPrimitive.Close\n            data-slot=\"dialog-close\"\n            render={\n              <Button\n                variant=\"ghost\"\n                className=\"cn-dialog-close\"\n                size=\"icon-sm\"\n              />\n            }\n          >\n            <IconPlaceholder\n              lucide=\"XIcon\"\n              tabler=\"IconX\"\n              hugeicons=\"Cancel01Icon\"\n              phosphor=\"XIcon\"\n              remixicon=\"RiCloseLine\"\n            />\n            <span className=\"sr-only\">Close</span>\n          </DialogPrimitive.Close>\n        )}\n      </DialogPrimitive.Popup>\n    </DialogPortal>\n  )\n}",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project source file, @base-ui/react",
      "display": "apps/v4/registry/bases/base/ui/dialog.tsx",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project full_name, @base-ui/react",
      "display": "shadcn-ui/ui",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project stargazers_count, @base-ui/react",
      "display": "128.5K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Library name, @mui/material",
      "display": "Material UI",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Monthly downloads, @mui/material",
      "display": "53.7M",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "License, @mui/material",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release, @mui/material",
      "display": "9.5.0",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release date, @mui/material",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Install, @mui/material",
      "display": "npm install @mui/material @emotion/react @emotion/styled",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart, @mui/material",
      "display": "import { Dialog, DialogTitle, DialogContent } from '@mui/material';\n\nexport default function Example() {\n  return (\n    <Dialog open>\n      <DialogTitle>Notice</DialogTitle>\n      <DialogContent>Review this notice.</DialogContent>\n    </Dialog>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Official description, @mui/material",
      "display": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart source file, @mui/material",
      "display": "material-ui/react-dialog",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Repository stars, @mui/material",
      "display": "99.3K",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Default dialog styles, @mui/material",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Can disable focus trapping, @mui/material",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Integration fit, @mui/material",
      "display": "Material Design dialogs inside the existing MUI theme and styling setup.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Focus behavior, @mui/material",
      "display": "Dialog inherits Modal disableEnforceFocus; disabling autofocus alone is a different setting.",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Library name, @headlessui/react",
      "display": "Headless UI",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Monthly downloads, @headlessui/react",
      "display": "38.2M",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "License, @headlessui/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release, @headlessui/react",
      "display": "2.2.10",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Package release date, @headlessui/react",
      "display": "Apr 2026",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Install, @headlessui/react",
      "display": "npm install @headlessui/react",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Quickstart, @headlessui/react",
      "display": "import { Description, Dialog, DialogPanel, DialogTitle } from '@headlessui/react'\nimport { useState } from 'react'\n\nfunction Example() {\n  let [isOpen, setIsOpen] = useState(false)\n\n  return (\n    <>\n      <button onClick={() => setIsOpen(true)}>Open dialog</button>\n      <Dialog open={isOpen} onClose={() => setIsOpen(false)} className=\"relative z-50\">\n        <div className=\"fixed inset-0 flex w-screen items-center justify-center p-4\">\n          <DialogPanel className=\"max-w-lg space-y-4 border bg-white p-12\">\n            <DialogTitle className=\"font-bold\">Deactivate account</DialogTitle>\n            <Description>This will permanently deactivate your account</Description>\n            <p>Are you sure you want to deactivate your account? All of your data will be permanently removed.</p>\n            <div className=\"flex gap-4\">\n              <button onClick={() => setIsOpen(false)}>Cancel</button>\n              <button onClick={() => setIsOpen(false)}>Deactivate</button>\n            </div>\n          </DialogPanel>\n        </div>\n      </Dialog>\n    </>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Repository stars, @headlessui/react",
      "display": "28.8K",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Default dialog styles, @headlessui/react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Can disable focus trapping, @headlessui/react",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Integration fit, @headlessui/react",
      "display": "Controlled unstyled dialogs with Tailwind-compatible composition.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Focus behavior, @headlessui/react",
      "display": "The current Dialog API keeps focus containment while open; changing autofocus or static rendering does not provide a non-modal mode.",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project function, @headlessui/react",
      "display": "export function ModalCore(props: Props) {\n  const {\n    children,\n    handleClose,\n    isOpen,\n    position = EModalPosition.CENTER,\n    width = EModalWidth.XXL,\n    className = \"\",\n  } = props;\n\n  return (\n    <Transition.Root show={isOpen} as={Fragment}>\n      <Dialog as=\"div\" className=\"relative z-30\" onClose={() => handleClose && handleClose()}>\n        <Transition.Child\n          as={Fragment}\n          enter=\"ease-out duration-300\"\n          enterFrom=\"opacity-0\"\n          enterTo=\"opacity-100\"\n          leave=\"ease-in duration-200\"\n          leaveFrom=\"opacity-100\"\n          leaveTo=\"opacity-0\"\n        >\n          <div className=\"fixed inset-0 bg-backdrop transition-opacity\" />\n        </Transition.Child>\n\n        <div className=\"fixed inset-0 z-30 overflow-y-auto\">\n          <div className={position}>\n            <Transition.Child\n              as={Fragment}\n              enter=\"ease-out duration-300\"\n              enterFrom=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n              enterTo=\"opacity-100 translate-y-0 sm:scale-100\"\n              leave=\"ease-in duration-200\"\n              leaveFrom=\"opacity-100 translate-y-0 sm:scale-100\"\n              leaveTo=\"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95\"\n            >\n              <Dialog.Panel\n                className={cn(\n                  \"relative w-full transform rounded-lg bg-surface-1 text-left shadow-raised-200 transition-all\",\n                  width,\n                  className\n                )}\n              >\n                {children}\n              </Dialog.Panel>\n            </Transition.Child>\n          </div>\n        </div>\n      </Dialog>\n    </Transition.Root>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project source file, @headlessui/react",
      "display": "packages/ui/src/modals/modal-core.tsx",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project full_name, @headlessui/react",
      "display": "makeplane/plane",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project stargazers_count, @headlessui/react",
      "display": "62.7K",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Library name, react-aria-components",
      "display": "React Aria Components",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Monthly downloads, react-aria-components",
      "display": "33.2M",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "License, react-aria-components",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release, react-aria-components",
      "display": "1.22.1",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release date, react-aria-components",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Install, react-aria-components",
      "display": "npm install react-aria-components",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Quickstart, react-aria-components",
      "display": "import { Modal, Dialog, Heading } from 'react-aria-components';\n\nexport default function Example() {\n  return (\n    <Modal isOpen>\n      <Dialog>\n        <Heading slot=\"title\">Notice</Heading>\n        <p>Review this notice.</p>\n      </Dialog>\n    </Modal>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Repository stars, react-aria-components",
      "display": "16.1K",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Default dialog styles, react-aria-components",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Can disable focus trapping, react-aria-components",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Integration fit, react-aria-components",
      "display": "Unstyled overlay, modal, and dialog components with state render props.",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Focus behavior, react-aria-components",
      "display": "The selected Modal/Dialog composition is a modal overlay; current ModalOverlayProps and AriaModalOverlayProps expose dismissal/transition options, not a public disable-containment switch. Custom usePopover code is a separate composition.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project function, react-aria-components",
      "display": "export const Modal = ({\n  name,\n  isLoading = false,\n  noAnimation = false,\n  style,\n  children,\n  onClose,\n  wrapperProps,\n  containerProps,\n  presentation = 'dialog',\n  ariaLabelledBy,\n  ...props\n}: ModalProps) => {\n  const { t } = useTranslation();\n  const { isNarrowWidth } = useResponsive();\n  const isSheet = presentation === 'sheet' && isNarrowWidth;\n  const viewport = useVisualViewport();\n  const { enableScope, disableScope } = useHotkeysContext();\n\n  // This deactivates any key handlers in the \"app\" scope\n  useEffect(() => {\n    enableScope(name);\n    return () => disableScope(name);\n  }, [enableScope, disableScope, name]);\n\n  const { isHidden, isActive, onClose: closeModal } = useModalState();\n  const dispatch = useDispatch();\n  const prefersReducedMotion = useReducedMotion();\n  const isAnimatedSheet = isSheet && !prefersReducedMotion;\n  const [isOpen, setIsOpen] = useState(true);\n  const isClosingRef = useRef(false);\n  const closeTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n  useEffect(() => {\n    return () => {\n      if (closeTimerRef.current) {\n        clearTimeout(closeTimerRef.current);\n      }\n    };\n  }, []);\n\n  const handleOnClose = () => {\n    if (isClosingRef.current) {\n      return;\n    }\n    isClosingRef.current = true;\n    const finishClose = () => {\n      if (isSheet) {\n        dispatch(collapseModals({ rootModalName: name }));\n      } else {\n        closeModal();\n      }\n      onClose?.();\n    };\n    if (isAnimatedSheet) {\n      closeTimerRef.current = setTimeout(finishClose, SHEET_EXIT_MS);\n      return;\n    }\n    finishClose();\n  };\n\n  const sheetRef = useSwipeToDismiss({\n    isEnabled: isSheet,\n    onDismiss: () => {\n      setIsOpen(false);\n      handleOnClose();\n    },\n  });\n\n  return (\n    <ErrorBoundary FallbackComponent={FeatureErrorFallback}>\n      <ReactAriaModalOverlay\n        data-testid={`${name}-modal`}\n        className={isAnimatedSheet ? mobileSheetOverlayClassName : undefined}\n        isDismissable\n        isOpen={isOpen}\n        onOpenChange={nextIsOpen => {\n          setIsOpen(nextIsOpen);\n          if (!nextIsOpen) {\n            handleOnClose();\n          }\n        }}\n        style={{\n          position: 'fixed',\n          inset: 0,\n          zIndex: MODAL_Z_INDEX,\n          fontSize: 14,\n          // on mobile, we disable the blurred background for performance reasons\n          ...(isNarrowWidth\n            ? {\n                backgroundColor: 'rgba(0, 0, 0, 0.4)',\n              }\n            : {\n                backdropFilter: 'blur(1px) brightness(0.9)',\n              }),\n          ...style,\n        }}\n        {...props}\n      >\n        {/* A container for positioning the modal relative to the visual viewport */}\n        <View\n          nativeStyle={{\n            // React Aria's height removes pinch zoom scaling. Safari page zoom\n            // needs CSS pixels, including keyboard resizing while zoomed.\n            '--visual-viewport-height': `${viewport.height}px`,\n            top: viewport.offsetTop,\n          }}\n          style={{\n            display: 'flex',\n            ...(isSheet\n              ? { alignItems: 'stretch', justifyContent: 'flex-end' }\n              : { alignItems: 'center', justifyContent: 'center' }),\n            height: 'var(--visual-viewport-height)',\n            overflowY: 'auto',\n            ...wrapperProps?.style,\n          }}\n        >\n          <ReactAriaModal\n            ref={sheetRef}\n            className={isAnimatedSheet ? mobileSheetModalClassName : undefined}\n          >\n            {modalProps => (\n              <Dialog\n                aria-label={ariaLabelledBy ? undefined : t('Modal dialog')}\n                aria-labelledby={ariaLabelledBy}\n                className={css(styles.lightScrollbar)}\n                style={{\n                  outline: 'none', // remove focus outline\n                }}\n              >\n                <ModalContentContainer\n                  noAnimation={noAnimation || isSheet}\n                  isActive={isActive(name)}\n                  {...containerProps}\n                  style={{\n                    flex: 1,\n                    padding: 10,\n                    willChange: isSheet ? undefined : 'opacity, transform',\n                    maxWidth: '90vw',\n                    minWidth: '90vw',\n                    maxHeight: 'calc(var(--visual-viewport-height) * 0.9)',\n                    minHeight: 0,\n                    borderRadius: 6,\n                    //border: '1px solid ' + theme.modalBorder,\n                    color: theme.pageText,\n                    backgroundColor: theme.modalBackground,\n                    opacity: isHidden ? 0 : 1,\n                    [`@media (min-width: ${tokens.breakpoint_small})`]: {\n                      minWidth: tokens.breakpoint_small,\n                    },\n                    overflowY: 'auto',\n                    ...styles.shadowLarge,\n                    ...(isSheet && mobileSheetContainerStyle),\n                    ...containerProps?.style,\n                  }}\n                >\n                  {isSheet && <View style={mobileSheetHandleStyle} />}\n                  <View style={{ paddingTop: 0, flex: 1, flexShrink: 0 }}>\n                    <ErrorBoundary FallbackComponent={FeatureErrorFallback}>\n                      {typeof children === 'function'\n                        ? children(modalProps)\n                        : children}\n                    </ErrorBoundary>\n                  </View>\n                  {isLoading && (\n                    <View\n                      style={{\n                        position: 'absolute',\n                        top: 0,\n                        left: 0,\n                        right: 0,\n                        bottom: 0,\n                        backgroundColor: theme.pageBackground,\n                        alignItems: 'center',\n                        justifyContent: 'center',\n                        zIndex: 1000,\n                      }}\n                    >\n                      <AnimatedLoading\n                        style={{ width: 20, height: 20 }}\n                        color={theme.pageText}\n                      />\n                    </View>\n                  )}\n                </ModalContentContainer>\n              </Dialog>\n            )}\n          </ReactAriaModal>\n        </View>\n      </ReactAriaModalOverlay>\n    </ErrorBoundary>\n  );\n};\n",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project source file, react-aria-components",
      "display": "packages/desktop-client/src/components/common/Modal.tsx",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project full_name, react-aria-components",
      "display": "actualbudget/actual",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project stargazers_count, react-aria-components",
      "display": "30.3K",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Library name, antd",
      "display": "Ant Design",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Monthly downloads, antd",
      "display": "19.9M",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "License, antd",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Package release, antd",
      "display": "6.7.1",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Package release date, antd",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Install, antd",
      "display": "npm install antd --save",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart, antd",
      "display": "import { Modal } from 'antd';\n\nexport default function Example() {\n  return (\n    <Modal open title=\"Notice\">\n      <p>Review this notice.</p>\n    </Modal>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Official description, antd",
      "display": "An enterprise-class UI design language and React components implementation",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Quickstart source file, antd",
      "display": "components/modal",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Repository stars, antd",
      "display": "100.2K",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Default dialog styles, antd",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Can disable focus trapping, antd",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Integration fit, antd",
      "display": "Ant Design themed dialogs with a promise-aware imperative confirmation API.",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Focus behavior, antd",
      "display": "Current6.7.1 supports focusable.trap=false; this was added after older modal APIs, so focusTriggerAfterClose is not substituted for trapping.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Library name, @mantine/core",
      "display": "Mantine",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Monthly downloads, @mantine/core",
      "display": "14.3M",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "License, @mantine/core",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Package release, @mantine/core",
      "display": "9.8.1",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Package release date, @mantine/core",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Install, @mantine/core",
      "display": "yarn add @mantine/core @mantine/hooks",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Quickstart, @mantine/core",
      "display": "import { useDisclosure } from '@mantine/hooks';\nimport { Modal, Button } from '@mantine/core';\n\nfunction Demo() {\n  const [opened, { open, close }] = useDisclosure(false);\n\n  return (\n    <>\n      <Modal opened={opened} onClose={close} title=\"Authentication\">\n        {/* Modal content */}\n      </Modal>\n\n      <Button variant=\"default\" onClick={open}>\n        Open modal\n      </Button>\n    </>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Official description, @mantine/core",
      "display": "React components library focused on usability, accessibility and developer experience",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Quickstart source file, @mantine/core",
      "display": "Demo.tsx",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Repository stars, @mantine/core",
      "display": "32.0K",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Default dialog styles, @mantine/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Can disable focus trapping, @mantine/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Integration fit, @mantine/core",
      "display": "Styled dialogs with a native stack and theme/provider setup.",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Focus behavior, @mantine/core",
      "display": "Modal trapFocus=false is distinct from returnFocus and closeOnEscape.",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Project function, @mantine/core",
      "display": "export function SendPasswordResetModal(props: SendPasswordResetModalProps): JSX.Element {\n  const medplum = useMedplum();\n  const [submitting, setSubmitting] = useState(false);\n\n  function handleSubmit(): void {\n    setSubmitting(true);\n    medplum\n      .post(`admin/projects/${props.projectId}/members/${props.membershipId}/resetpassword`, {})\n      .then(() => {\n        showNotification({ color: 'green', message: 'Password reset email sent.' });\n        props.onSuccess?.();\n        props.onClose();\n      })\n      .catch((err) => showNotification({ color: 'red', message: normalizeErrorString(err), autoClose: false }))\n      .finally(() => setSubmitting(false));\n  }\n\n  return (\n    <Modal opened={props.opened} onClose={props.onClose} title=\"Send password reset email\" centered>\n      <Stack>\n        <Text size=\"sm\">\n          Send this member an email with a single-use link to set a new password. Their current password remains valid\n          until they complete the reset.\n        </Text>\n        <Group justify=\"flex-end\">\n          <Button variant=\"default\" onClick={props.onClose}>\n            Cancel\n          </Button>\n          <Button color=\"blue\" loading={submitting} onClick={handleSubmit}>\n            Send email\n          </Button>\n        </Group>\n      </Stack>\n    </Modal>\n  );\n}",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Project source file, @mantine/core",
      "display": "packages/app/src/admin/AccountSecurity.tsx",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Project full_name, @mantine/core",
      "display": "medplum/medplum",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Project stargazers_count, @mantine/core",
      "display": "2.8K",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Library name, react-modal",
      "display": "react-modal",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Monthly downloads, react-modal",
      "display": "14.1M",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "License, react-modal",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Package release, react-modal",
      "display": "3.16.3",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Package release date, react-modal",
      "display": "Dec 2024",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Install, react-modal",
      "display": "npm install react-modal",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Quickstart, react-modal",
      "display": "import ReactModal from 'react-modal';\n\nReactModal.setAppElement('#root');\n\nexport default function Example() {\n  return (\n    <ReactModal isOpen contentLabel=\"Notice\">\n      <p>Review this notice.</p>\n    </ReactModal>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Repository stars, react-modal",
      "display": "7.4K",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Default dialog styles, react-modal",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "Can disable focus trapping, react-modal",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Integration fit, react-modal",
      "display": "A standalone modal with basic inline overlay/content styles and explicit application-root setup.",
      "asOf": "2026-11-20"
    },
    "F281": {
      "label": "Focus behavior, react-modal",
      "display": "Current3.16.3 calls scopeTab for Tab events without a disabling prop. shouldFocusAfterRender controls initial/scoped focus, not that Tab handler; it is not presented as a full containment opt-out.",
      "asOf": "2026-11-20"
    },
    "F282": {
      "label": "Project function, react-modal",
      "display": "render() {\n    let showModal =\n      Boolean(this.props.error) &&\n      (this.props.showFatalErrorModal === ShowFatalErrorModal.Default ||\n        this.props.showFatalErrorModal === ShowFatalErrorModal.Show)\n    return (\n      <Modal\n        isOpen={showModal}\n        className=\"FatalErrorModal\"\n        onRequestClose={this.props.handleClose}\n      >\n        <h2 className=\"FatalErrorModal-title\">Fatal Error</h2>\n        <div className=\"FatalErrorModal-pane\">\n          <p>Tilt has encountered a fatal error: {this.props.error}</p>\n          <p>\n            Once you fix this issue you'll need to restart Tilt. In the meantime\n            feel free to browse through the UI.\n          </p>\n        </div>\n      </Modal>\n    )\n  }",
      "asOf": "2026-11-20"
    },
    "F283": {
      "label": "Project source file, react-modal",
      "display": "web/src/FatalErrorModal.tsx",
      "asOf": "2026-11-20"
    },
    "F284": {
      "label": "Project full_name, react-modal",
      "display": "tilt-dev/tilt",
      "asOf": "2026-11-20"
    },
    "F285": {
      "label": "Project stargazers_count, react-modal",
      "display": "10.1K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React modal libraries Radix Headless UI React Aria Base UI react-modal examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
