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. Setting the label to false removes the element, which can be useful when nested as the only child within a group. |
detail? | Additional information about the field, disclosed in a tooltip. |
required? | Whether or not this field is required. |
Data
A toggle always returns a boolean value. There is no indeterminate state for this field.