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; closed dialogs are removed after an animation delay.

Examples

const dialogs = new DialogsStore(); dialogs.show(<p>Hello</p>);

Methods

Go

DialogsStore.show()method

Open a new dialog wrapping the given content.

show(children: ReactNode): void