Tinacms Developer Docs
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

PropertyTypeDescription
type'boolean'Required.
namestringField identifier.
labelstringDisplay label in the editor.
listbooleanStore multiple values as an array.

Type Signature

interface BooleanField {
  type: 'boolean'
  name: string
  label?: string
  list?: boolean
}

On this page