import {alert} from "attio/client"

Analogous to the window.alert() function in web browser JavaScript. The popup is modal.

It is useful when you forcefully let the user know that something has happened.

API

TypeScript
async function alert(options: Options): Promise<void>

Options

title : string

The title of the confirm pop-up.

text : string

The text of the confirm pop-up.

okLabel? : string

The label for the “OK” button.

Defaults to "OK".