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? | The initial value of the field. |
key? | A key to access the value. If provided, each field must have a unique key. See make for more information about accessing values. |
label? | A label describing the purpose of the field. |
detail? | 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.