io.confirm
A yes or no before anything irreversible.
io.confirm asks a yes or no question with a Confirm and a Cancel button. It returns true for Confirm and false for Cancel. Either button answers at once, so there is no Continue button. Ask it before you delete, refund or send something.
The simplest one
The whole action file, and roughly what your team sees when it runs.
Delete archived files
What you can set
The settings you will reach for most, each with the line of code that turns it on.
One question, two buttons. The question with Confirm and Cancel under it. One click answers.
Help text. A second line under the question says what happens next.
True or false. Confirm returns true and Cancel returns false. The handler gets a plain boolean.
Stop on Cancel. Return before the irreversible part. The run ends with your message and nothing changes.
A step of its own. Ask it on its own, not in io.group. Its buttons send the whole step.
Register it once. Install @awaitio/confirm and put it in components. Its key is its name on io.
More in the docs
This page shows the idea. The docs have every prop, the checks on the server and more examples.
Next components
Three more calls on io. Each one shows a control and hands your code a typed value.
Write your first tool today.
An async function, a few await calls, and the form is in the browser.