Skip to content

io.input.boolean ​

Represents a checkbox component.

Usage ​

ts
const value = await io.input.boolean(
  "Do you enjoy using Forge?",
  defaultValue = true,
)
python
value = await io.input.boolean("Do you enjoy using Forge?", default_value=True),

example of Forge app with boolean component

Props ​

defaultValue Required ​

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. Supports inline markdown elements like bold, italics, and links.

Returns ​

boolean