const customerName = await io.input.text('Customer name')
console.log(customerName) // Ellen Ripley
The label to render above the input.
Default value rendered in input. Default ''
.
Disables user input. Default false
.
The small help text to render below the input. Default undefined
.
The placeholder to render within the input. Default undefined
.
An asynchronous function that takes unknown
input and outputs either true
or an error message string
to show the user.