DialogsStoreclass

new DialogsStore()
Return
DialogsStore
Store holding the live list of open <Dialog> elements.

Store holding the live list of open <Dialog> elements.

  • show() opens a new dialog. A dialog is removed from the list as soon as it closes.
  • <Dialogs> renders the list inside a transition, so dialogs animate in and out with view transitions.

Methods

Go

DialogsStore.show()method

Open a new dialog wrapping the given content.

show(children: ReactNode): void