Dialog #

Side panel #

Default Open #

This Example demonstrates the usage of defaultOpen, e.g. when you need to open a dialog on a new page when certain conditions are met.

It also shows how you can manipulate the dialog open state outside its modal, via dialog ref. It will use the ref.current.close() to close the dialog after 1 second.