Skip to main content

io.input.text

Requests a string value.

Usage

const text = await io.input.text("Company name", {
placeholder: "Acme Inc.",
});
interval.com

Props

defaultValue

string Optional

Default value for the input.

disabled

boolean Optional

Whether the input is disabled, preventing edits to the `defaultValue`.

helpText

string Optional

Secondary label for providing additional context.

lines

number Optional

Initial number of lines when `multiline` is set to true. Defaults to 3.

maxLength

number Optional

Maximum number of characters allowed in the input.

minLength

number Optional

Minimum number of characters allowed in the input.

multiline

boolean Optional

Whether the text input should be resizable and support multiple lines. Defaults to false.

placeholder

string Optional

Text to display in the input when no value is set.

Returns

string

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