Skip to main content

io.input.boolean

Requests a boolean value.

Usage

const shouldSubscribe = await io.input.boolean("Subscribe to our newsletter?");
interval.com

Props

defaultValue

Optional

boolean

Default value for the input.

disabled

Optional

boolean

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

helpText

Optional

string

Optional label providing additional context.

Returns

boolean

Was this section useful?
On this page