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 dialog content is updated
reactively on each re-render.
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:
-
dialog(DialogControl | None, default:None) –A
DialogControlto display, orNoneto hide it.