<dialog>
element that will appear in the foreground of your app when opened.
If your app makes use of dialog components (most commonly, for modals and pop-ups), you may encounter issues with the Privy dialog interfering with those from your app.
When using other non-Privy dialog elements within your app, we generally recommend:
Dialog
component from headless-ui
, as it has the best compatibility with UI components and HTML elements from third-party libraries like Privy.Dialog
component from Radix UI, we suggest making the following modifications to the default Dialog
component:
onPointerDownOutside
prop of the Dialog.Content
component.Dialog.Content
with the FocusScope
component from the @radix-ui/react-focus-scope
library. In this FocusScope
component, you should set the prop trapped
to false
. See this GitHub discussion for more info!Dialog
component might look as follows: