useDisclosure hook returns open, close, and toggle helpers that can be handy for managing controlled <dialog>, <details>, and other disclosure components.
Requires a computer running an operating system. The computer must have some memory and ideally some kind of long-term storage. An input device as well as some form of output device is recommended.
<Dialog> element
Callbacks
onOpen: will be called when the disclosure state is set to true.
onClose: will be called when the disclosure state is set to false.