Skip to main content

io.input.url

info

io.input.url is available on SDK versions v0.24.0 and higher.

Requests a URL.

The URL is validated on the client and an error is shown if the provided value is not a URL. You can perform additional URL validation by using the validation API.

Returns a URL object.

Usage

const redirectUrl = await io.input.url("Redirect URL", {
helpText: "Please provide a URL for the redirect.",
placeholder: "https://example.com",
allowedProtocols: ["https"],
});

return redirectUrl.href;
interval.com

Props

allowedProtocols

array Optional

Optional array of allowed protocols. Default are http and https.

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.

placeholder

string Optional

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

Returns

URL

Was this section useful?
On this page