Skip to main content

use_dialog

Portal a DialogControl to the page's dialog overlay.

Call this hook inside a component function on every render. Pass a DialogControl instance to show the dialog, or None to hide/remove it.

The hook automatically sets open=True on the dialog when it is added to the overlay and removes it when None is passed or the component unmounts.

Parameters: