<ButtononClick={openDialog}> Open dialog </Button> <Dialogopen={open}onClose={closeDialog}> Lorem ipsum dolor sit amet consectetur adipisicing elit. </Dialog>
Parameters
Optional initialIsOpen: boolean
An initial open state. If undefined, open defaults to an initial value of false.
React hook used to manage the the opening/closing of the Dialog component.
Example