AlertApi: { open: boolean; setOpen: (open: boolean) => void }

Imperative handle returned by enhanceAlert.

Type declaration

  • Readonlyopen: boolean

    Whether the alert is currently shown.

  • setOpen: (open: boolean) => void

    Show or dismiss the alert. Dismissal waits for the CSS exit transition.