Get the latest insights, best practices, and tips from power users

Hygraph
Docs

OpenDialog

OpenDialog(src, props)
Opens a separate dialog where you can load data from an external source or create your own UI.

Parameters

  • src
    type string
    The URL where the dialog contents are located.

  • props

    • disableOverlayClick
      type boolean
      State of the overlay click
      If true, the dialog doesn't close when clicking outside of the dialog area
    • maxWidth
      type string
      The maximum width of the dialog
    • ariaLabel
      type string
      Accessibility. ariaLabel can be used in cases where text that could label the element is not visible

Returns

Promise<DialogReturn | null>