Skip to main content

io.input.email

Requests an email address.

Usage

const email = await io.input.email("Email address", {
helpText: "Please provide your work email.",
placeholder: "you@example.com",
});
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

Optional secondary label providing additonal context.

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