io.input.text
Requests a string value.
Usage
const text = await io.input.text("Company name", {
placeholder: "Acme Inc.",
});
interval.com
Props
defaultValue | Optional string | Default value for the input. |
helpText | Optional string | Secondary label for providing additional context. |
lines | Optional number | Initial number of lines when `multiline` is set to true. Defaults to 3. |
maxLength | Optional number | Maximum number of characters allowed in the input. |
minLength | Optional number | Minimum number of characters allowed in the input. |
multiline | Optional boolean | Whether the text input should be resizable and support multiple lines. Defaults to false. |
placeholder | Optional string | Text to display in the input when no value is set. |
Returns: String
Was this section useful?