Fields
Boolean Field
A toggle input for true/false values
A toggle input that stores true or false values.
Usage
{
type: 'boolean',
name: 'published',
label: 'Published',
}Options
| Property | Type | Description |
|---|---|---|
type | 'boolean' | Required. |
name | string | Field identifier. |
label | string | Display label in the editor. |
list | boolean | Store multiple values as an array. |
Type Signature
interface BooleanField {
type: 'boolean'
name: string
label?: string
list?: boolean
}