Skip to main content

io.confirm

Requests confirmation of an action using a full-screen dialog box.

caution

io.confirm is not supported within an io.group.

Usage

const shouldDelete = await io.confirm("Delete this user account?", {
helpText: "All of their data will be deleted immediately.",
});
interval.com

Props

helpText

Optional

string

Optional label providing additional context.

Returns

boolean

Did this section clearly explain what you wanted to learn?
On this page