Skip to main content

AlertDialog

A modal dialog implementing Alert, which is the notification pattern for use cases where immediate user action is required. Since the use cases are quite specific, and the component is expected to be used with pretty specific content items, the layout is not implemented as a separate component, the way it is in components like ModalWindow or Menu

Features

Live example

Result
Loading...
Live Editor

Imperative API

useAlertDialog provides an imperative API for common scenarios that are handled by AlertDialog, such as confirming an action. The imperative API is a set of async helper functions such as confirm, which can get user input during some action handling logic, without needing to handle the state of the dialog UI.

info

useAlertDialog depends on WindowManager to imperatively open modal windows.

Result
Loading...
Live Editor