Toggle

The toggle field can be used to input boolean values.

Example

{
  type: "toggle",
  label: "Toggle",
}

Options

Input

Use these options when using the field with take.

value?
boolean
The initial value of the field.
key?
string
A key to access the value. If provided, each field must have a unique key. See make for more information about accessing values.
label?
string
A label describing the purpose of the field.
detail?
string
Additional information about the field, disclosed in a tooltip.

Data

A toggle always returns a boolean value. There is no indeterminate state for this field.